Forum Moderators: bakedjake

Message Too Old, No Replies

linux / partition filling up

need to find the file(s) that are doing it

         

iceman42

5:32 pm on Feb 21, 2006 (gmt 0)

10+ Year Member



df -h shows me that / partition jumps about 7-9% daily in size but I am not sure of the culprit, I know there is a command where you can find the file sizes and sort them biggest to smallest.

MattyMoose

7:58 pm on Feb 21, 2006 (gmt 0)

10+ Year Member



what about:

du ¦ sort -n

iceman42

8:02 pm on Feb 21, 2006 (gmt 0)

10+ Year Member



du: invalid option -- n

MattyMoose

8:04 pm on Feb 21, 2006 (gmt 0)

10+ Year Member




Did you put the "¦" in there? IIRC, WebmasterWorld does something weird to the pipes.

Anyway, try this one that I found which is pretty good:

du -h ¦ grep "[0-9]M" ¦ sort -n -r ¦ less

That will only find files that are >= 1MB

Cheers,
Matt

Birdman

10:29 pm on Feb 21, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



FileLight [methylblue.com] is a cool graphical disk-usage utility.

zCat

10:36 pm on Feb 21, 2006 (gmt 0)

10+ Year Member



find / -size +1024k -exec ls -sh {} \; ¦ sort -r -n ¦ less
will find all files beginning in the root directory larger than 1024 kilobytes. Change according to requirments. Unfortunately there's no shortcut for specifiying the size in megabytes.

jatar_k

10:38 pm on Feb 21, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



as a sidenote for all commands listed above

always change the ¦ char in copied commands from the forum with a true pipe character