Linux - check when crontab file was last amended

10

2

How can i get the last updated date/time of the crontab file. not when cron was last run but instead when was the crontab file amended last

Marty Wallace

Posted 2013-01-14T22:40:33.567

Reputation:

Answers

16

If you are root or sudoer:

sudo ls -l /var/spool/cron/crontabs/$USER

UPD: as pointed by @jgr, the exact path may vary, like:

sudo ls -l /var/spool/cron/$USER

Otherwise, it doesn't seem to be possible without altering directory permissions.

Anton Kovalenko

Posted 2013-01-14T22:40:33.567

Reputation: 296

/var/spool/cron/tabs/$USER worked for me – Israelm – 2015-09-30T18:58:13.897

On fedora users crontabs are stored in /var/spool/cron/$USER, the above looks like solaris or something :/ – None – 2013-01-14T22:49:51.113

On my Ubuntu, the first path is OK. – Denys Séguret – 2013-01-15T09:25:56.200