Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

migrated from stackoverflow.com Jan 15 '13 at 9:31

This question came from our site for professional and enthusiast programmers.

add comment

1 Answer

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.

share|improve this answer
    
On fedora users crontabs are stored in /var/spool/cron/$USER, the above looks like solaris or something :/ –  jgr Jan 14 '13 at 22:49
    
On my Ubuntu, the first path is OK. –  dystroy Jan 15 '13 at 9:25
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.