I haven't used nohup
command until today, but now I need to use it to run a command in the background.
As far as i know, i can also use the bg
command to run a process in background. So my question is, what are the differences between nohup
and bg
commands?