technetsolutions.net
  • Home
  • About Us
  • Services
  • Blog
  • Contact Us
technetsolutions.net
  • Home
  • About Us
  • Services
  • Blog
  • Contact Us

Automate Tasks with cron Jobs in Linux

bytechnetsolution inUncategorized posted onOctober 14, 2023
0
0

Cron is a job scheduling utility present in Linux/Unix systems. The crond daemon enables cron functionality and runs in background. The cron reads the crontab for running predefined scripts.

Crontab file consists of commands per line and has six fields actually and separated either by space or tab. The beginning five fields represent the time to run tasks and the last field is for command.Minute (hold values between 0-59)

Hour (hold values between 0-23)

Day of Month (hold values between 1-31)

The month of the year (hold values between 1-12 or Jan-Dec, you can use the first three letters of each month’s name i.e Jan or Jun.)

Day of week (hold values between 0-6 or Sun-Sat, Here also you can use the first three letters of each day’s name i.e Sun or Wed. )

Each user can have their own crontab to create, modify and delete tasks. By default cron is enabled for users, however, we can restrict users by adding an entry in /etc/cron.deny file.

How to Schedule Cron jobs:

type crontab -e

After pressing enter VI editor page will open. Make necessary changes and quit pressing :wq keys that save the setting automatically.

For individual users, the cron service checks the following file: /var/spool/cron/crontabs

Share:

Previous

How to configure Azure Bastion from Azure Portal:

Next

Terraform Overview and Uses to Provision Azure IaaS infrastructure:

Related Posts

October 8, 2023
How to configure Azure Bastion from Azure Portal:
No Comments
September 15, 2025
Top 10 DevOps Tools in 2025: Complete Guide for Developers & IT Teams
No Comments
May 8, 2025
Difference between DevOps and SRE Role
No Comments

Leave a Comment Cancel reply

Your email address will not be published. Required fields are marked *

Recent post

  • Top 10 DevOps Tools in 2025: Complete Guide for Developers & IT Teams
  • Difference between DevOps and SRE Role
  • Promethous alerting setupin openshift container
  • The Role of AI in Enhancing Ansible Automation
  • The Future of DevOps: What’s Next?

Categories

  • Devops
  • Support
  • Uncategorized

Archives

  • September 2025
  • May 2025
  • March 2025
  • February 2025
  • December 2024
  • October 2023
  • September 2023
  • March 2023
  • November 2022
  • October 2022
  • April 2019

Recent Comments

    Copyright © 2018 Evatheme. All Rights Reserved.|blog