Cron – List all running cron jobs

cron

Is there a way to see a list of running cron jobs on my server?

I would like to see the name of the file being loaded or command. Plus how long it as been running.

I am on CentOS.

Best Answer

The cron daemon just runs commands on behalf of users. You can look in /var/log/cron to find out what commands have been run and you can look in all the usual places (/var/spool/cron/, /etc/crontab, /etc/cron.d/, /etc/cron.*, /etc/anacrontab &c ) to get a list of the commands that cron runs.

Beyond that the running time of each process will vary and be quite hard to track down, you're almost certainly not up to the job. What do you actually want to achieve?