nerdexam
CompTIA

XK0-005 · Question #244

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…

The correct answer is C. at. at is the correct tool for scheduling a one-time task at a specific future time. For example: echo 'yum update' | at 8pm Friday. cron is designed for recurring scheduled tasks, not one-off jobs. nohup prevents a running process from being killed when the user logs out, but does…

System Management

Question

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?

Options

  • Ascreen
  • Bcron
  • Cat
  • Dnohup

How the community answered

(51 responses)
  • A
    4% (2)
  • B
    2% (1)
  • C
    92% (47)
  • D
    2% (1)

Explanation

at is the correct tool for scheduling a one-time task at a specific future time. For example: echo 'yum update' | at 8pm Friday. cron is designed for recurring scheduled tasks, not one-off jobs. nohup prevents a running process from being killed when the user logs out, but does not schedule future execution. screen is a terminal multiplexer for managing terminal sessions - it does not schedule tasks.

Topics

#Job scheduling#at command#System administration#Package management

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice