I'm executing a command which updates a file in an unknown location on my system. What is the the
locace/whatever command that will tell me, which file was the last to update on the system? This command needs to know not to look in
proc or any other locations which are not relevant.
migrated from stackoverflow.com Nov 11 '13 at 23:27
This question came from our site for professional and enthusiast programmers.
Is this any help for you?
This tells you which files were changed in last 5 minutes and outputs the first line..
You can of course specify it to look only for png files for example:
Take in mind that without the first filter it also checks directories, so the use of the filename filter is advised.
Edit: If you want to exclude some folders it would probably better to write a bash script which has N folders specified for searching and then does the command for each of them.
That means your script would execute:
and so on..
you could see which files are currently being changed with
this will list all files and directories modified in
and you can also tell the command to ignore some directories
Be aware that setting such monitoring on the whole file system will take quite some time to set up and you may also have to increase the
This command may be more appropriate when using on specific locations.