My sysadmin has set up a bunch of cron jobs on my machine. I'd like to know exactly what is scheduled for what time. How can I get that list?
Depending on how your linux system is set up, you can look in:
also, many distros have:
These are simply directories that contain executables that are executed hourly, daily, weekly or monthly, per their directory name.
On top of that, you can have at jobs (check /var/spool/at/), anacron (/etc/anacrontab and /var/spool/anacron/) and probably others I'm forgetting.
Probably depends on the crond you are using. For example, with Vixie-Cron (debian/ubuntu default) you get it for the current user via:
or for another user via
To get the crontabs for all users you can loop over all users and call this command.
Alternatively, you can look up the spool files. Usually, they are are saved under
contains all the configured crontabs of all users - except of the root user who is also able to configure jobs via the system-wide crontab, which is located at
|show 4 more comments|