List files modified in the last hour - find command
Use find to list files modified within the last hour:
$ find . -mtime -1
- the
.is the search path -
-mtimetime parameter -
-1list files modified in the last 24 hours
Other Settings
-
-aminwhen the file was accessed in minutes -
-atimewhen the file was accessed in days -
-cminwhen the file was created in minutes -
-ctimewhen the file was created in days -
-mminwhen the file was modified in minutes
Numerical parameters:
-mtime -0.5
-
-1the last 24 hours -
-0.5the last 12 hours -
-0.25the last 6 hours -
+3more than three days
Written by Daniel Romero
Related protips
1 Response
This is wrong. The title is "List files modified in the last hour" but it should be "List files modified in the last day". Either that of you should change the command to find . -mmin -60.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Shell
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#