Find files changed 7 days ago

πŸ“… June 7, 2020 β€’ πŸ•£ 1 min read

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