header image
[ # ] Detach a command from a terminal
January 10th, 2011 under Linux

When you run an application from a terminal and you close the terminal then the application terminates. This is also the case when you run the application in the background (

at the end).

To detach a application entirely from a terminal and therefore daemonized it, we can use the


nohup cmd &
nohup cmd &