CartMetrix - Do you know yours?

« Use a Read Folder to Keep Track of ToRead Items | Home | Shortstat Hack To Remove Local Views »

9/19/2005

Find Large Files Wasting Disk Space

Find files over 8000k on all mounted drives and print the filesize and path:
find /$1 -mount -size +8000k -exec ls -sh {} \;

This one is suitable for a cron job. It does the same, sorts by filesize and mails the result to the supplied email address.

find /$1 -mount -size +8000k -exec ls -sh {} \; | /bin/sort -n | mail email@domain.com

Adjust the 8000k to search for larger or smaller files.

Popularity: 10%

Trackback:

Related Posts

Post your opinion

Verification Image

Please type the letters you see in the picture.

Subscribe without commenting


damonparker.org is proudly powered by WordPress
Entries (RSS) and Comments (RSS).

copyright © 2002-2009 damonparker.org. all rights reserved.

Close
E-mail It