Exam EX200 All QuestionsBrowse all questions from this exam
Question 29

SIMULATION -

Configure a cron Task.

User natasha must configure a cron job, local time 14:23 runs and executes: */bin/echo hiya every day.

    Correct Answer:

    To configure a cron job for the user 'natasha' that runs the command '/bin/echo hiya' at 14:23 every day, follow these steps: 1) Open the crontab for the user by running: crontab -e -u natasha. 2) Add the following line to the crontab file: 23 14 * * * /bin/echo hiya. 3) Save and exit the editor. This will ensure that the cron job is set correctly to run 'hiya' at the specified time daily.

Discussion
rsisalima

crontab -e -u natasha 23 14 * * * /bin/echo hiya