Your own cron jobs
crontab -l
"no crontab for alice" just means you have none (more). sudo crontab -l shows root's jobs, not yours.
Another user's cron jobs
sudo crontab -l -u www-data
Every user's cron jobs
Per-user crontabs are files named after the user in the spool directory:
sudo ls -l /var/spool/cron/crontabs # Debian, Ubuntu sudo ls -l /var/spool/cron # Fedora, RHEL, Amazon Linux, Arch (cronie)
To print them all, labelled by user:
for u in $(cut -d: -f1 /etc/passwd); do sudo crontab -l -u "$u" 2>/dev/null | sed "s/^/$u: /" done
Read them with crontab -l -u rather than editing the spool files; changes must go through crontab -e.
System-wide cron jobs
| Where | What's there |
|---|---|
/etc/crontab | The system crontab. Lines have an extra user field. |
/etc/cron.d/ | One file per package or app, same format as /etc/crontab. |
/etc/cron.hourly/, daily/, weekly/, monthly/ | Plain scripts, run by run-parts (or by anacron where it's installed). |
/etc/anacrontab | anacron's jobs, if anacron is installed (cron vs anacron). |
cat /etc/crontab
ls -l /etc/cron.d/ /etc/cron.{hourly,daily,weekly,monthly}/
run-parts --test /etc/cron.daily # Debian/Ubuntu: which scripts would run
On Debian and Ubuntu, run-parts skips files whose names contain a dot (so backup.sh in cron.daily never runs); --test shows what it would actually run.
systemd timers: the jobs that aren't in cron at all
Modern distributions schedule many tasks with systemd timers instead of cron (log rotation, package updates, cleanup). List them, with their next and last run times:
systemctl list-timers --all
Converting between the two: cron ↔ systemd OnCalendar converter.
Is cron itself running?
systemctl status cron # Debian, Ubuntu systemctl status crond # Fedora, RHEL, Amazon Linux pgrep -a cron # any system: is the daemon process there?
If the service isn't found, cron may not be installed: Unit cron.service could not be found.
Did my job run? Is it running now?
Cron logs a line each time it starts a job:
journalctl -u cron --since today # Debian/Ubuntu (systemd) grep CRON /var/log/syslog | tail # Ubuntu with rsyslog sudo tail /var/log/cron # Fedora/RHEL with rsyslog
Full details per distro: where are cron logs. To see whether a job is running right now, look for its process:
pgrep -af backup.sh
Test a job the way cron runs it
Most "works in my terminal, fails in cron" problems come from cron's bare environment. Reproduce it by running the command with an almost empty environment and sh:
env -i HOME="$HOME" LOGNAME="$USER" PATH=/usr/bin:/bin SHELL=/bin/sh \ /bin/sh -c '/home/alice/backup.sh'
If that fails, cron will too; fix the paths or variables (how). To test the real thing, schedule the job for two minutes from now, watch the log, then put the proper schedule back. Or paste the whole crontab into the crontab checker, which reads it the way Debian, cronie and BusyBox do.
On a Mac
crontab -l works the same. Apple's own scheduled jobs use launchd instead; list the ones loaded for your user with launchctl list. See crontab on Mac.
Sources
Checked against these official manuals and source code. Last verified 18 November 2026.