How do I see my own cron jobs?
crontab -l prints the current user's crontab. "no crontab for ana" means none exists. As root, look at any user's table with crontab -l -u www-data. This shows only personal crontabs, though. System jobs live elsewhere, and on a typical server they outnumber user jobs.
Where else can scheduled jobs live?
| Location | What it holds |
|---|---|
/var/spool/cron/crontabs/ | User crontabs on Debian and Ubuntu |
/var/spool/cron/ | User crontabs on Rocky Linux, AlmaLinux, CentOS Stream |
/var/cron/tabs/ | User crontabs on FreeBSD |
/etc/crontab | The system table, with a user column |
/etc/cron.d/ | Package and admin job files |
/etc/cron.hourly, daily, weekly, monthly | Scripts run by run-parts or anacron |
/etc/anacrontab | Delays and periods for the daily, weekly and monthly folders |
| systemd timers | Units listed by systemctl list-timers |
Do not edit spool files directly; use crontab -e -u name, which validates the file and tells the daemon to reload.
How do I list every user's crontab at once?
Loop over the accounts known to the system and print any table that exists:
getent passwd | cut -d: -f1 | while read -r u; do t=$(crontab -l -u "$u" 2>/dev/null) || continue printf '==== %s ====\n%s\n' "$u" "$t" done
Run it as root. getent includes accounts from LDAP or other directory services if the machine uses them, which a plain read of /etc/passwd would miss.
How do I read the system tables and folders?
grep -Ev '^\s*(#|$)' /etc/crontab
for f in /etc/cron.d/*; do echo "== $f"; grep -Ev '^\s*(#|$)' "$f"; done
ls -l /etc/cron.{hourly,daily,weekly,monthly}/
The grep drops comments and blank lines, leaving only active entries. In the periodic folders, each executable file is one job; on Debian and Ubuntu, run-parts --test /etc/cron.daily prints which files will actually run, since names with dots are skipped there.
When do the daily and weekly folders run?
It depends on the system. Debian and Ubuntu call them from /etc/crontab at fixed times, or through anacron when it is installed. Rocky Linux and AlmaLinux run the hourly folder from /etc/cron.d/0hourly and hand daily, weekly and monthly to anacron, which waits a random delay within a window set in /etc/anacrontab. Anacron also catches up runs missed while the machine was off. Check its last-run stamps in /var/spool/anacron/.
What about systemd timers?
Modern distributions move many housekeeping tasks from cron to timers: log rotation, package metadata refresh, file system trimming and temporary file cleanup. List them all, including inactive ones:
systemctl list-timers --all systemctl cat fstrim.timer
The output shows the next and last run times and which service each timer starts. Users can own timers too; systemctl --user list-timers run as that user shows them, and loginctl list-users tells you whose user managers are active.
How do I see what actually ran?
Look at the logs, not just the schedule. Cron logs each started job:
journalctl -u cron --since '-1 day' | grep CMD # Debian, Ubuntu journalctl -u crond --since '-1 day' | grep CMD # Rocky, AlmaLinux grep CRON /var/log/syslog | tail -30 # where rsyslog is installed
Matching a load spike against these timestamps often finds the culprit in a minute: a backup, a search index rebuild or a report someone scheduled at 04:00 and forgot.
What should I do with what I find?
- Write the jobs down with their owner and purpose. An unexplained job on a server you inherited deserves a closer look.
- Spread heavy jobs across the night so a backup and a reindex do not collide.
- Move critical jobs to timers or wrap them with logging and
flock, as shown in Set up a cron job. - Check for jobs you did not create after any security incident; attackers often add persistence through crontabs and
/etc/cron.d.
On machines delivered by us, the schedule starts clean: only the jobs and timers that come with the operating system itself.
Keep Reading
Set up a cron job
Create a cron job that actually runs: crontab -e, full paths, environment, logging, locking against overlap and mail-free alerts.
OpenCron expressions
Read and write the five cron fields, steps, ranges, lists and shortcuts, plus the day-of-month and weekday trap that surprises everyone.
OpenHarden SSH on Linux
A practical hardening list for sshd on a fresh dedicated box: keys, users, rate limits, firewall scope and an outside audit.
OpenRocky Linux
Rocky Linux 9, a free Red Hat compatible rebuild focused on staying bug for bug identical to its upstream.
OpenFAQ
Quick Answers
As root, loop over getent passwd and run crontab -l -u for each user, as shown above.
In /var/spool/cron/crontabs on Debian and Ubuntu, /var/spool/cron on Rocky Linux and AlmaLinux and /var/cron/tabs on FreeBSD.
No. System jobs live in /etc/crontab, /etc/cron.d and the periodic folders, and many tasks now run as systemd timers.
Run systemctl list-timers --all to see every timer with its next and last run.
Read the cron service log with journalctl -u cron or -u crond and filter for CMD lines.