Last active
August 29, 2015 14:20
-
-
Save DuqueDeTuring/7c8a92c9191da4cfafeb to your computer and use it in GitHub Desktop.
Archivos modificados hace X días
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The UNIX find command can locate files based upon the time the files were last changed, accessed, or modified using the -ctime, -atime, or -mtime respectively. So, to find all files in a directory that are older than 7 days might look like this. (source: http://ddiguru.com/blog/72-how-to-find-files-older-than-7-days-with-unix-find) | |
find /home/myuser -mtime +7 -print | |
find /home/myuser -type f -mtime +7 -print0 #The -print0 argument will enable this search to find files in that path that may contain spaces in the file names. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment