Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

So on a regular basis I clear out files from my server which have an atime +160 with a command such as: (technically to delete old files but avoid any file that might have been accessed recently)

 find /tmp/art -atime +160 -exec rm -f {} \;

However, for some reason today no files show up unless I do atime +10. It appears all my files somehow got the access time changed to earlier this month. I've recently read the find command itself if used like the following would modify the atime:

 find /tmp/art -atime +160 -exec ls -l {} \;

But from my experience running either command has never changed the atime before. I was going to use ctime but just found out it does not mean change time.

My questions are:

  1. Is it just a fluke the find command is not modifying my -atime or was the information I read incorrect?
  2. If the files are available via a webserver for a user to browse them, would them downloading the file modify the atime? Or is the atime only modified when accessed via terminal/ssh?
share|improve this question
    
What are your mount options for the filesystem containing /tmp? –  Michael Hampton Dec 19 '13 at 3:41
    
Not sure what you mean but the /tmp is not a separate partition/disk. For example it does not show up if I run df -h. –  Damainman Dec 19 '13 at 3:48
    
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.