I needed to know the last time crontab had been used to update the cron table (crontab) file for a user account on a CentOS 7 system, since an expected output file from a cron job that should have been created from the last modification to the cron file had not appeared. On a CentOS Linux system, the crontab files can be found in
/var/spool/cron
.
# ls -l /var/spool/cron total 8 -rw-------. 1 jdoe jdoe 409 Apr 7 12:32 jdoe -rw-------. 1 root root 542 Jan 1 2015 root
The files are used to schedule jobs to run periodically on the system and
can be edited with crontab -e
. A crontab file for an account
can be viewed by issuing the command crontab -l
while logged into
that account.