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.

If I 'cp' a file, is the 'atime' (access time) updated?

I want to find the last time a file was copied.

share|improve this question

1 Answer 1

Yes the atime (access time) on a file is modified when copied using the cp command. The resultant file will also have the same atime.

Your filesystem must also not be mounted with noatime (disables inode atime storage).

share|improve this answer
    
Assuming the filesystem isn't setup with noatime. –  Zoredache Dec 15 '11 at 2:49

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.