Finding files

Various Linux Stuff
Post Reply
thockman
Site Admin
Posts: 104
Joined: Thu Dec 15, 2005 5:51 pm
Location: Kansas City
Contact:

Finding files

Post by thockman » Mon Sep 15, 2008 8:36 am

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/$$

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest