Notes & TILs
Search…
Find files changed 7 days ago
To find last modified file
1
find Documents/ -mtime -1
Copied!
where mtime means "Last Modification Time"
To find files Accessed (read operation)
1
find Documents/ -atime -7
Copied!
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
1
find Documents/ -newermt "7 days ago" -ls
Copied!
Last modified 1mo ago
Copy link