Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .