Skip to content

Instantly share code, notes, and snippets.

@jamiehs
Created August 8, 2019 20:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamiehs/bec45dcdf0694d7b1229833d8870653e to your computer and use it in GitHub Desktop.
Save jamiehs/bec45dcdf0694d7b1229833d8870653e to your computer and use it in GitHub Desktop.
Find mtime quirks
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