Find files changed 7 days ago

📅️ Published: June 7, 2020  • 🕣 1 min read

Find files changed 7 days ago

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

Tired of fucking up with git everyday?

ugit helps you undo git commands with ease. Undo from 15+ git scenarios

ugit logo