Linux List / Display and view all cron jobs

How do I view currently setup or all running cron jobs under a Linux or Unix-like operating systems?

The cron service searches its spool area (usually /var/spool/cron/crontabs) for crontab files (which are named after user accounts); crontabs found are loaded into memory. cron also reads /etc/crontab, which is in a slightly different format. Additionally, cron reads the files in /etc/cron.d: it treats the files in /etc/cron.d as in the same way as the /etc/crontab file.
Tutorial details
Difficulty level Easy
Root privileges Yes
Requirements Linux
Est. reading time 2m
The intended purpose of /etc/cron.d/ directory feature is to allow packages that require finer control of their scheduling than the /etc/cron.{daily,weekly,monthly} directories to add a crontab file to /etc/cron.d.

Linux View Users Cronjob

Use the following syntax to view vivek users cronjob:

sudo crontab -u userName -l
sudo crontab -u vivek -l

How to Display all jobs in cron / crontab

I run the following as root user:
crontab -l
Linux view all cron jobs command

View Root User Cronjob on Linux

Just type the following command as root user:

crontab -l


sudo crontab -l

Sample outputs:

# Edit this file to introduce tasks to be run by cron.
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').# 
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
# For more information see the manual pages of crontab(5) and cron(8)
# m h  dom mon dow   command
#* * * * *	root /root/bin/master.replication
@reboot /bin/sleep 100;/bin/systemctl restart memcached

How to view /etc/crontab on Linux or Unix

A cronjob can be also run from /etc/crontab file. To view it run the following less command:
# less /etc/crontab
Sample outputs:

# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
# m h dom mon dow user	command
17 *	* * *	root    cd / && run-parts --report /etc/cron.hourly
25 6	* * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6	* * 7	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6	1 * *	root	test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )

Linux view daily cronjob

Type the following commands to display daily crontab:

cd /etc/cron.daily/
ls -l
cat filename
cas passwd
Linux view running cron jobs

Linux view running daily cron jobs

Unix view hourly cronjobs

Type the following commands:

cd /etc/cron.hourly/
ls -l
cat filename

How to view Weekly Cron jobs on Linux

Type the following commands:

cd /etc/cron.weekly/
ls -l
cat filename

Command to see monthly Cronjobs / crontabs

Excute the following cat command to see running cron jobs:

cd /etc/cron.monthly/
ls -l
cat filename

View Software (Package) Specific Cronjobs

Run the following commands

cd /etc/cron.d/
ls -l
cat filename
cat renew-ssl-certs
How to Display (List) All Jobs in Cron or Crontab

Listing users cron jobs when using systemd timers

Systemd comes with its cron system called systemd.timer. It is another option that one can use on systemd based Linux distro. Use the systemctl command as follows to list cron jobs in Linux
systemctl list-timers
Pass the --all option to see loaded but inactive timers, too:
systemctl list-timers --all
How to List Cron Jobs in Linux including systemd.timer

What to do when you get a list of all scheduled cron jobs on your system?

Now you know how to list the cron jobs on your Linux or Unix server or VM. Make sure you backup all cron jobs too. Typically I backup the following in directories:

  • /var/spool/cron/
  • /var/spool/anacron/
  • /etc/cron*

Summing up

You learned how to list, display, and view all current Linux cron jobs. See the following tutorials for more info:

This entry is 5 of 16 in the Linux Cron Jobs Howto & Tutorial series. Keep reading the rest of the series:
  1. What is cron on a Linux or Unix-like systems?
  2. How To Add Jobs To cron Under Linux or UNIX?
  3. Verify crond Daemon And Cronjobs Are Running
  4. Start Restart and Stop The Cron or Crond Service
  5. List / Display All Cron Jobs
  6. Linux / UNIX Crontab File Location
  7. Change Crontab Email Settings ( MAILTO )
  8. Disable The Mail Alert By Crontab Command On a Linux or Unix-like Systems
  9. At What Time Cron Entries In cron.daily, cron.weekly, cron.monthly Run?
  10. Execute Cron Job After System Reboot
  11. Setup and Run PHP Script As A Cron Job
  12. Run crontab job every minute on a Linux or Unix-like system
  13. Running crontab (cron jobs) Every 10 Minutes
  14. Cron Job Script Execution on the Last Day of a Month
  15. Execute / Run crontab (cron jobs) every 1 minute
  16. Ubuntu create cron.log file

🐧 Get the latest tutorials on Linux, Open Source & DevOps via RSS feed or Weekly email newsletter.

🐧 10 comments so far... add one

CategoryList of Unix and Linux commands
Disk space analyzersncdu pydf
File Managementcat
FirewallAlpine Awall CentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network UtilitiesNetHogs dig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot cron disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNAlpine CentOS 8 Debian 10 Firewall Ubuntu 20.04
10 comments… add one
  • tworzenie oprogramowania Oct 17, 2012 @ 6:02

    Thank you for a very good summary. If a cron task is required to be executed on a schedule other than hourly, daily, weekly, or monthly, it can be added to the /etc/cron.d/ directory.

  • Toxic Nov 13, 2012 @ 23:33

    view crontab from all users:

    cat /var/spool/cron/*

  • weethomas Feb 19, 2014 @ 18:37

    crontab -l just lists the jobs for the user who ran the command.

    So, to view root’s jobs, you’d either need to be logged in as root or run it with sudo.

  • Dovryak Jun 18, 2014 @ 12:10

    There is also very handy script to view all users crontabs. Run it as follows to list all cron jobs for user:


  • M.Pasha Jun 20, 2014 @ 7:28

    How do we check running cronjob process.
    I guess, its from ps -ef | grep

    or any other suggestion.

    • abhijit Sep 10, 2014 @ 6:01

      To check running cronjob process use:crontab -l

  • Daniel Oct 22, 2014 @ 15:41

    To list all user’s crobtab:

    for user in $(cut -f1 -d: /etc/passwd); do crontab -u $user -l; done

  • Mel Mar 22, 2015 @ 21:40

    How does one check the “version” of cron running? How can one know if their cron is a “vixie-style” crontab or not?

    • 🐧 nixCraft Mar 23, 2015 @ 9:57

      Try the following:


  • ade Jan 17, 2017 @ 7:28

    I do this task manually
    ./getConfig ‘indirect’ ‘./(Command task)’ ‘./(Credential.csv’ ‘/usr/cronout/’ (standalone server)
    in command task there is a “cat /etc/ssh/sshd_config” but I saw blank sshd_config even though I can see details about sshd_config when I run those task manually. Can you help me?

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre> for code samples. Still have questions? Post it on our forum