Most of the users are used to editing crontab files using crontab -e, and that is just fine, but where are actual files placed? By default, 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:
- Mac OS X – /usr/lib/cron/tabs/
- FreeBSD/OpenBSD/NetBSD – /var/cron/tabs/
- CentOS/Red Hat/RHEL/Fedora/Scientific Linux – /var/spool/cron/
- Debian / Ubuntu Linux – /var/spool/cron/crontabs/
- HP-UX Unix – /var/spool/cron/crontabs/
- IBM AIX Unix – /var/spool/cron/