How to show cron jobs for all users in Linux

To show the cron jobs set for the current users just type in:

crontab -l

Here is quick way to show all the cron jobs configured on your system, i.e. for all users (run it as root):

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s