Multiple choice technology

You can prevent a background process from terminating, which is the default action, when you sign off or are disconnected, using ________

  1. &

  2. nohup

  3. dot (.)

  4. slash (/)

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The nohup (no hang up) command prevents a background process from terminating when the user logs off or disconnects. It runs the command that ignores the SIGHUP signal. Option B is correct. The ampersand (&) merely backgrounds a process but doesn't protect it from hangups. Options C and D are not relevant commands for this purpose.