Created
August 8, 2019 20:47
-
-
Save jamiehs/bec45dcdf0694d7b1229833d8870653e to your computer and use it in GitHub Desktop.
Find mtime quirks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -mtime +0 # find files modified greater than 24 hours ago | |
find . -mtime 0 # find files modified between now and 1 day ago | |
# (i.e., in the past 24 hours only) | |
find . -mtime -1 # find files modified less than 1 day ago (SAME AS -mtime 0) | |
find . -mtime 1 # find files modified between 24 and 48 hours ago | |
find . -mtime +1 # find files modified more than 48 hours ago |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment