How can I search for files that were modified or changed 5 minutes before and 5 minutes after, a certain file. I have triedmint@mint ~/Desktop $ touch -t 201210101315 /tmp/timestampmint@mint ~/Desktop $ sudo find . ~ -cmin -5 | xargs ls -lto create a temp file with that time stamp and search for files changed within 5 minutes but I'm only getting files changed 5 minutes within current time.What is the simplest way?
How to find files compared to the time of a specific file
linux;find
Use the -a (and) condition, e.g find . -cmin -5 -cnewer /tmp/timestampWill find all files changed in 5 minutes and newer than /tmp/timestamp