Crontab basic commands

In Linux, Cron is a daemon/service that executes shell commands periodically on a given schedule. Cron is driven by a crontab, a configuration file that holds details of what commands are to be run along with a timetable of when to run them.

  1. Create a cron file

It will open crontab file. A new blank file if you do not have an existing crontab file.

2. List active crontab

3. crontab syntax
A crontab file has six fields for specifying minute, hour, day of month, month, day of week and the command to be run at that interval.

4. crontab examples

5. Special strings that can be used in crontab

6. Multiple commands
&& can be used to run multiple commands consecutively.

7. Specifying a user’s crontab file to use

8. Removing a crontab file



System Administrator and Full stack web developer.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store