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:

[box]

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

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

[/box]

<a href="http://www.facebook.com/turkeytunnel" target="_blank"><img alt="Turkey Tunnel Logo" height="42.5" src="http://wiredin.co.za/academy/wp-content/uploads/2013/03/Turkey-Tunnel-Logo1.png" width="291"></img></a>