LPIC-1 Exam 101 v5 (Linux Administrator) — Question 104
The command dbmaint & was used to run dbmaint in the background. However, dbmaint is terminated after logging out of the system. Which alternative dbmaint invocation lets dbmaint continue to run even when the user running the program logs out?
Answer options
- A. job -b dmaint
- B. dbmaint &>/dev/pts/null
- C. nohup dbmaint &
- D. bg dbmaint
- E. wait dbmaint
Correct answer: C
Explanation
The correct answer is C, as using nohup allows a program to ignore the hangup signal, enabling it to continue running even if the user logs out. The other options either do not prevent termination upon logout or are not valid commands for this purpose.