What is difference between Nohup and &?

What is difference between Nohup and &?
Answer
Nohup helps to continue running the script in background even after you log out from shell. Using the ampersand (&) will run the command in a child process (child to the current bash session). However, when you exit the session, all child processes will be killed.
 

Tìm kiếm

Back
Top