Here are all the actual test exam dumps for IT exams. Most people prepare for the actual exams with our test dumps to pass their exams. So it's critical to choose and actual test pdf to succeed.

Exam EX200 Topic 1 Question 124 Discussion

Actual exam question for RedHat's EX200 exam
Question #: 124
Topic #: 1
Configure a cron Task.
User natasha must configure a cron job, local time 14:23 runs and executes: */bin/echo hiya every day.

Suggested Answer:

crontab -e -u natasha
23 14/bin/echo hiya
crontab -l -u natasha // view
systemctlenable crond
systemcdlrestart crond

by ubiquituz at Nov 25, 2024, 03:40 PM

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Nick name: Submit Cancel
whitebeard pirate
2024-12-21 05:20:57
su - natasha
crontab -e
add: 23 14 * * * /bin/echo hiya
crontab -l
output should be : 23 14 * * * /bin/echo hiya
upvoted 1 times
...
ubiquituz
2024-11-25 15:40:55
1
Steps to Configure Cron Job for User natasha:
Switch to the user natasha:
su - natasha
2
Edit the user-specific crontab: Open the crontab file for the user natasha:
crontab -e
3
Add the cron job: In the crontab editor, add the following line:
23 14 * * * /bin/echo hiya
23: The minute field — This specifies the 23rd minute of the hour.
14: The hour field — This specifies 14:00, or 2:00 PM.
The * * * in this case means:
* (Day of the Month): The * means "every day of the month," so the job will run on any day of the month (1-31).
* (Month): The * means "every month," so the job will run in every month (January, February, etc.).
* (Day of the Week): The * means "every day of the week," so the job will run on any day (Sunday, Monday, etc.)./bin/echo hiya: The command to be executed.
Save and exit: Save the changes in the crontab file and exit the editor (e.g., in vim, press Esc, type :wq, and hit Enter).
4
Verify the cron job: To confirm the cron job has been configured correctly, list the user's crontab:
crontab -l
Output should show:
23 14 * * * /bin/echo hiya
upvoted 1 times
...
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.