Linux: List All Cron Jobs

This post will guide you how to check all running Cron Jobs under your Linux operating system via Command line interface. How do I list or display all running cron jobs in your Linux system. How to get a list of all scheduled cron jobs on my system. How do I list all cron jobs fro all uses or just only one specified user?

The configuration file of the Cron service is the /etc/crontab file. and the Cron service will read this file to check if the corb jobs should be run at the current time.

List Cron Jobs based On the Specified User

You can use the following command to check one use’s cron jobs, such as: TOM, type:

#crontab -u tom -l

If you just want to display root user cron jobs, just issue the following command:

#crontab -l

List Daily Cron Jobs

If you setup the Daily cron jobs in your system, and you can change directory to /etc/cron.daily, and just check the corresponding scripts.

#ls -la /etc/cron.daily/

#cd /etc/cron.daily/

#cat script_name

List Hourly Cron Jobs

If you setup the Hourly cron jobs in your system, and you can change directory to /etc/cron.hourly, and just check the corresponding scripts.

#ls -la /etc/cron.hourly/

#cd /etc/cron.hourly/

#cat script_name

List Weekly cron Jobs

If you setup the Weekly cron jobs in your system, and you can change directory to /etc/cron.Weekly , and just check the corresponding scripts.

#ls -la etc/cron.Weekly/

#cd /etc/cron.Weekly /

#cat script_name

List Monthly cron Jobs

If you setup the Monthly cron jobs in your system, and you can change directory to /etc/cron.Monthly , and just check the corresponding scripts.

#ls -la /etc/cron.Monthly/

#cd /etc/cron.Monthly /

#cat script_name

Check Cron Jobs in /etc/crontab

Issue the following command:

#less /etc/crontab

Outputs:

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root

# For details see man 4 crontabs

# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed

 

You might also like:

Sidebar



back to top