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
Asked
Active
Viewed 3.2k times
1 Answers
17
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
- 306
- 1
- 4
-
On fedora users crontabs are stored in `/var/spool/cron/$USER`, the above looks like solaris or something :/ – Jan 14 '13 at 22:49
-
On my Ubuntu, the first path is OK. – Denys Séguret Jan 15 '13 at 09:25
-
/var/spool/cron/tabs/$USER worked for me – Israelm Sep 30 '15 at 18:58