Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.2k views
in Technique[技术] by (71.8m points)

gedit /etc/nginx/sites-available/default &>/dev/null 是什么意思?

请问下:
gedit /etc/nginx/sites-available/default &>/dev/null

这句命令的作用是什么?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

用 gedit 打开 default 文件,gedit 向 stdout 和 stderr 的输出都重定向到 /dev/null 文件,/dev/null 是一个特殊的文件,把数据输入到 /dev/null 就相当于丢弃数据


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...