Run nohup without nohup.out

This is a lovely little command which allows you to run commands in the linux terminal after you have exited. This is useful to keep services running in Linux without having to keep the terminal window open. Nohup outputs all data which it would have output to the terminal, to a file called nohup.out – this can increase in size and might be undesirable. To prevent nohup from generating nohup.out use the following command:


nohup sh >/dev/null 2>&1&

Note the trailing “&” – this prevents you from having to ctrl-c to return to the terminal


<a href="" target="_blank"><img alt="Turkey Tunnel Logo" height="42.5" src="" width="291"></img></a>