Step 1/1: Keep running after logout

When the terminal closes (an SSH connection drops, say), the shell sends its jobs the HUP signal and they usually end. nohup COMMAND & makes the command ignore HUP; output that is not redirected is appended to nohup.out.

$ nohup ./backup.sh &
Fundamentalsnohupprocess
Keep running after logging out
Run sleep 500 in the background so that it keeps running after you log out (when the terminal closes and it gets the HUP signal).

This exercise needs real Linux

The commands it uses (processes, networking and more) are not in the simulator. Switch to real Linux and the exercise runs in a real Linux system inside your browser.

fgNext lesson:top