0

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

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

1 Answer 1

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).

1
  • Assuming the filesystem isn't setup with noatime.
    – Zoredache
    Dec 15, 2011 at 2:49

You must log in to answer this question.

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