Skip to content

Instantly share code, notes, and snippets.

@DuqueDeTuring
Last active August 29, 2015 14:20
Show Gist options
  • Save DuqueDeTuring/7c8a92c9191da4cfafeb to your computer and use it in GitHub Desktop.
Save DuqueDeTuring/7c8a92c9191da4cfafeb to your computer and use it in GitHub Desktop.
Archivos modificados hace X días
# 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