Linux command to find files changed in last n seconds. Please suggest shell script,that we can run from cli or command.
|
feedback
|
migrated from stackoverflow.com Jun 21 '11 at 17:47
This question came from our site for professional and enthusiast programmers.
|
Use find command like this:
To find all | ||||
|
feedback
|
|
Similar to what glenn suggested, if you want to find everything modified, say, in the time during which an installer process was running, it might be easier to do something like:
Then you don't have to do the time calculation; you just find things changed after the checkpoint file. | |||
|
feedback
|
|
If you're monitoring a directory for changes to files, you probably want to use inotify-tools instead of some infinite polling loop. | |||
|
feedback
|
|
If you have a version of find that doesn't support
| |||
|
feedback
|