Ask Steves · Daily notes · VPS, 20% off · AI Profit Lab · SEO · Money Hub

20 October 2026 · One command a day

How do I see what cron jobs are scheduled on Linux?

crontab -l prints the scheduled jobs for a user. Use it when something runs on its own and you need to know why, or when you want to see what is already scheduled before you add more. It is also one of the first things to check on a server you have just taken over.

I learn my automation tips in the AI Profit Boardroom. Have a look here. Affiliate link.

The command

crontab -l
sudo crontab -l -u www-data

crontab manages each user's personal schedule of jobs. The -l flag means list. It prints the schedule and changes nothing. On its own it shows the jobs for the user you are logged in as. Add -u and a username to see another user's jobs. That needs root, so put sudo in front. sudo crontab -l without -u shows root's jobs, which are kept apart from your own.

What you will see

# m h  dom mon dow   command
*/5 * * * * /usr/bin/curl -fsS https://example.com/health > /dev/null
0 3 * * * /home/user/scripts/backup.sh >> /var/log/backup.log 2>&1
30 2 * * 0 find /var/www/sitename/tmp -type f -mtime +7 -delete

Lines that start with # are comments. On Ubuntu a new crontab often starts with a long block of them, so scroll to the bottom. Each job line has five time fields and then the command. The fields are minute, hour, day of month, month and day of week. * means every, and */5 means every fifth. So the first job runs every five minutes. The second runs at 03:00 every day. The third runs at 02:30 on Sundays, because 0 is Sunday. If the user has no jobs you will see no crontab for user, which is not an error.

When to use it

Watch out for

crontab -l only shows one user's personal crontab. It is easy to think a server has no scheduled jobs when they are just stored somewhere else. System-wide jobs live in /etc/crontab and in the files in /etc/cron.d/. There are also scripts in /etc/cron.daily/ and the other cron.* folders. Many Ubuntu packages, certbot included, use systemd timers instead of cron. Run systemctl list-timers to see those. To check everything, look at your own crontab, root's crontab, the /etc/cron* folders and the timers.

Questions people ask

How do I change a cron job once I have found it?

Run crontab -e to edit your own crontab, or sudo crontab -e -u username to edit another user's. Do not edit the files in /var/spool/cron/crontabs/ directly, because cron may not notice the change.

Why does sudo crontab -l show different jobs from crontab -l?

With sudo, the command runs as root, so you see root's crontab. Each user has their own separate list.

Seeing and controlling exactly what runs on a schedule is something you can only do on a server you control. You can get the same VPS with 20% off at https://asksteves.co.uk/vps. Affiliate link.

Want more automation tips? The AI Profit Boardroom on Skool is where I get mine. Have a look here. Affiliate link.

Everything on this blog runs on one Hostinger KVM 8. This link takes 20% off the same box.

GET A VPS, 20% OFF →

Affiliate link.

Related server notes: How do I see systemd timers on Linux? · How do I see which IPs fail2ban has banned? · How do I see which process is using a port on Linux? · All daily notes