Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 532 Bytes

find-files-changed-7-days-ago.md

File metadata and controls

29 lines (19 loc) · 532 Bytes

Find files changed 7 days ago

Posted on 07 Jun, 2020

To find last modified file

find Documents/ -mtime -1

where mtime means "Last Modification Time"

To find files Accessed (read operation)

find Documents/ -atime -7

where atime means "Last Access Time"

-7 signifies anything changed 7 days or less. +7 signifies anything changed atleast 7 days ago. 7 signifies anything changed exactly 7 days ago.

an alternative version

find Documents/ -newermt "7 days ago" -ls