Powerful Linux Find Command
If you want to find files in a certain directory modified sometime ago, you could use these commands to find out easily:
* Example: find everything in current directory modified in the last 24 hours:
- find . -mtime 0
* Example: find everything in current directory modified in the last 7 days:
- find . -mtime -7
* Example: find everything in current directory that have NOT been modified in the last year:
- find . -mtime -365
* Example: find everything in current directory that had been modified more recently than "abc.txt":
- find . -newer abc.txt
No comments:
Post a Comment