I know that in order to suppress the output of a program I can redirect it to /dev/null
, for example to hide all error and warning messages from chromium I can start the program like this
chromium-browser 2> /dev/null &
However, if I happen to forget about the error messages and type
chromium-browser &
(which is quite annoying when they appear in the middle of a command) I don't know what to do except for stopping the application and starting it again properly.
Can I somehow redirect error output without restarting the application?
Best Answer
You can also launch the browser with nohup and then close the terminal window with the following:
This way, the browser will launch and detach from the console, that can then be closed quietly.