Nohup

1
$ nohup <command> [args] &
  • & will disable the SIGINT interruption done by Ctrl + C.
  • nohup will disable the SIGHUP interruption done by closing the session.

We should see this msg after typing the command.

1
appending output to nohup.out

Kill Nohup process

1
ps -aux | grep "<command program>" 
  • a show all process
  • u show by user
  • x show all process from all terminals

Then you can kill the precess with the PID number.

1
kill -9 <PID>

Reference

https://unix.stackexchange.com/questions/479/keep-processes-running-after-ssh-session-disconnects