Linux: List files older than specified creation days

by rajesh 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.
1216
like
0
dislike
0
mail
flag

You must LOGIN to add comments