Linux: List files older than specified creation days
by rajesh[ Edit ] 2012-03-25 11:10:52
To list files that where created 30 day back we can use the command
#find . -daystart -mtime +30
To list them
#find . -daystart -mtime +30 | xargs ls -lh
TO remove them
#find . -daystart -mtime +30 | xargs rm
Note: Be very cautious in using this on remove.