Page 1 of 1

Finding files

Posted: Mon Sep 15, 2008 8:36 am
by thockman
This will find files greater than 100MB

Code: Select all

find . -size +100000k
This will find files that have not been accessed in 10 days and delete them.

Code: Select all

find . -atime +10 -exec rm {} \;
Using this I found on interweb will allow you to find a newer than query.

Code: Select all

touch -t `date +%m%d0000` /tmp/$$
find / -type f -newer /tmp/$$
rm /tmp/$$