CompTIA Linux+ (XK0-004) — Question 262
Joe, a user, asks a systems administrator to schedule the daily execution of a custom script.
Which of the following commands will allow the systems administrator to set up Joe's cron job?
Answer options
- A. crontab -r -u joe
- B. crontab -e -u joe
- C. crontab -n -u joe
- D. crontab -l -u joe
Correct answer: B
Explanation
The correct answer is B, as the 'crontab -e' command allows the administrator to edit the cron jobs for the specified user, in this case, Joe. Options A, C, and D do not serve the purpose of scheduling a new job; A removes the user's crontab, C is not a valid command, and D lists the current jobs without allowing modifications.