Limited Time Offer
15%
Off
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.
Suggested Answer:
by ubiquituz at Nov 25, 2024, 03:40 PM
Comments
whitebeard pirate
2024-12-21 05:20:57crontab -e
add: 23 14 * * * /bin/echo hiya
crontab -l
output should be : 23 14 * * * /bin/echo hiya
ubiquituz
2024-11-25 15:40:55Steps 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
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.
Report Comment
Commenting
You can sign-up / login (it's free).