How do I view currently setup or all running cron jobs under Linux 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. 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.
View Users Cronjob
Use the following syntax to view vivek users cronjob:
crontab -u userName -l crontab -u vivek -l
View Root User Cronjob
Just type the following command:
crontab -l
View /etc/crontab
A cronjob can be also run from /etc/crontab file. To view it, enter:
# less /etc/crontab
View Daily Cronjob
Type the following commands:
cd /etc/cron.daily/ ls -l cat filename
View Hourly Cronjobs
Type the following commands:
cd /etc/cron.hourly/ ls -l cat filename
View Weekly Cronjobs
Type the following commands:
cd /etc/cron.weekly/ ls -l cat filename
View Monthly Cronjobs
Type the following commands:
cd /etc/cron.monthly/ ls -l cat filename
View Software (Package) Specific Cronjobs
Type the following commands
cd /etc/cron.d/ ls -l cat filename
You should follow me on twitter here or grab rss feed to keep track of new changes.
Featured Articles:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop













{ 2 comments… read them below or add one }
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.
view crontab from all users:
cat /var/spool/cron/*