I want to view the all cron jobs in linux. Whats the command

  • I realize that this is an honest question, but doesn't anyone know how to use google anymore? I've been seeing more and more questions here that took more time to post on serverfault than it would to get an answer from google. – Aaron Brown Dec 9 '09 at 18:41
  • A good lesson on cron is to examine how logrotate works... – djangofan Aug 16 '11 at 23:35

varies by distro, varies by cron software, varies by usage.

this should cover everything on rhel/centos/fedora:

  • The same goes for Debian/Ubuntu. – andol Dec 8 '09 at 23:04

cat /var/spool/cron/*

  • 2
    plus cat /etc/cron*/* and cat /etc/crontab on most modern Unix-like systems. – womble Dec 8 '09 at 22:34

Another way...

As root, you can use the -u parameter to crontab mixed with -l to view that users crontab entries. Something like this:

cat /etc/passwd |cut -d ":" -f 1 | while read narf; do  crontab -u $narf -l; done

That will get every username in your passwd file -- grabbing the first field (-f 1) using ':' as a delimiter (-d ":") with cut, and then calling crontab -u -l for each user in the passwd file.

Often there is also a file /etc/crontab with the system-wide jobs.


In order to be complete, we mustn't forget anacron:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.