Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在运行这个命令:
nohup google-chrome > /dev/null 2>&1 &
运行它后,我得到以下输出:
[1] 16975
无论如何我可以运行该命令并且根本没有输出?
提前致谢!
您可以&>像这样使用重定向 stdout 和 stderr :
&>
nohup google-chrome &> /dev/null &
要隐藏 pid,请使用子 shell:
(nohup google-chrome & ) &> /dev/null