There may be occasions where you, as the administrator of a machine, may want to see what cron entries your users have. Maybe you have slow downs at a particular time every day, and want to see who’s running what.
All crontab’s, for all users, are stored in /var/spool/cron/crontabs on Debian and Ubuntu, as plain text files. So, as root, you will be able to cat any of the files in there – they are stored as the username, so:
/var/spool/cron/crontabs/daz
… would be a user called “daz” for example.
In CentOS, the path is slightly different – there is no crontabs directory, so it’s simply:
/var/spool/cron/
You can also find out an individual users’ crontab by issuing (as root);
crontab -l -u username
This will show you that users crontab. Of course, if you want to edit it, you can by doing:
crontab -e -u username
Other posts which may be of interest..
-
Removing packages only installed as dependancies and no longer needed (Ubuntu, Debian)
Viewing Previous Command History in Windows Command Prompt (cmd)
Using SCP Aliases to Upload Files Quicker (OS X, BASH)
Mount an ISO Image Under Linux
Changing the Default Location for Screenshots in OS X


Comments