find is a great tool for finding files. It has the option to find files that were modified in the last X days with -mtime. However I'd like something more fine grained than that. I want to be able to find files that were modified in the last 2 hours. Is there some way to make find (or some other similar tool) do this?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
|
|||
|
|
|
man find -mmin File's data was last modified n minutes ago. |
|||||
|
|
An alternative to Paul Brewer's (best) answer: touch -t 201002160900 timestamp find . -newer timestamp |
||||
|
|
Here is a good link to find out more information about that. http://content.hccfl.edu/pollock/unix/findcmd.htm |
|||
|
|