Skip to main content

Crontab Commands

To specify a editor to open crontab file, use: export EDITOR=vi ; Below is a list of crontab commands:

CommandDescription
crontab -eEdit crontab file, or create one if it doesn’t already exist.
crontab -lDisplay crontab list of cron jobs, display crontab file contents.
crontab -rRemove your crontab file.
crontab -vDisplay the last time you edited your crontab file. (This option is only available on a few systems.)

Service Commands

Below is a list of crontab service commands:

CommandDescription
sudo service cron statusCheck the status of cron service.
sudo service cron startStart the cron service.
sudo service cron stopStop the cron service.
sudo service cron reloadReload the cron service configuration.
sudo service cron restartRestart the cron service.