PDA

View Full Version : Find large files?


ScottB
03-18-2007, 01:06 PM
My /dev/hda7 partition has filled up. I found some easy things to remove like old tar balls, but I am still at 97%. I know I have some other stuff I can clear.

I have a script that I use on AIX systems to find large files but apparently the `find` commmand isnt going to work with this one. Does anyone have a suggestion?

Here is the command I was trying in a script:
find . -type f -xdev -ls | awk '{print "\t" $11 $12 $13}' | sort -rn | head $1

Jamie
03-18-2007, 01:09 PM
(cd /; du -x . | sort -n) should get you started. If the total size there doesn't match what you see in df, you probably have orphan inodes and need to run e2fsck on the file system. Be sure it the file system is mounted readonly when you do that.

ScottB
03-18-2007, 01:17 PM
Thanks a million!