CompTIA Linux+ (XK0-004) — Question 128
A systems administrator needs to run the yum update command two hours after employees log off and leave for the day on Friday.
Which of the following is the BEST command to complete the task, if the task only needs to be run once?
Answer options
- A. screen
- B. cron
- C. at
- D. nohup
Correct answer: D
Explanation
The correct answer is D, nohup, because it allows the command to continue running in the background even after the user has logged out. Options A (screen) and C (at) are not ideal for this specific one-time execution scenario, while B (cron) is generally used for recurring tasks rather than a single execution.