Location of the Crontab files

Most of the users are used to edit crontab file using crontab -e, and that is just fine, but where are actual files placed? By defualt, Linux stores cron files under /var/spool/cron/crontab. All cron jobs are stored after the username as per /etc/passwd file. To edit the file directly, you just need to open the file in your favorite text editor and make changes.

Here is the list of crontab file locations after the OS:

  1. Mac OS X - /usr/lib/cron/tabs/
  2. FreeBSD/OpenBSD/NetBSD - /var/cron/tabs/
  3. CentOS/Red Hat/RHEL/Fedora/Scientific Linux - /var/spool/cron/
  4. Debian / Ubuntu Linux - /var/spool/cron/crontabs/
  5. HP-UX Unix - /var/spool/cron/crontabs/
  6. IBM AIX Unix - /var/spool/cron/

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.