Ubuntu detach task from terminal

Here is a little tip for Ubuntu users.
If you run a process from a terminal then as soon as you close terminal, the process will close as well.

Do detach a process from terminal execute:

$ yourtask &

and when process launches, focus back to terminal, press ctrl+z. This will bring you the prompt again where you type:

$ disown

which will do the detaching. 
Now you can close the terminal and process will not be killed.

Comments

Popular posts from this blog

What is the difference between conjecture and hypothesis?

What does http-equiv stands for?