Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm trying to hunt down a cron job (or the equivalent) which I know is running, but I can't find it in the default cron files for my system (FreeBSD / Linux / BSD). How can I tell which ones are actually being initialized?

share|improve this question
add comment

2 Answers

crontab can be used to override the files that are used by default. As such you can remove and add your own cron lists, or just single cron jobs.

crontab -l

That will list the cron jobs/lists/tabs that are currently initialized, their frequency, directory and file location, and a few other small details.

Also in FreeBSD you can look in /var/cron/tabs and for Ubuntu/Linux look in /var/spool/cron/crontabs for user-specific crontabs.

share|improve this answer
add comment

Linux based distributions can also use various multiple locations for crontabs:

/etc/cron.d/
/etc/cron.daily/
/etc/cron.hourly/
/etc/cron.monthly/
/etc/crontab
/etc/cron.weekly/
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.