darkone (\/) (;,,,;) (\/) 11610 Posts user info edit post |
Once upon a time, someone showed me a linux command or series of command that would show me the largets 10 or 20 directories in a given volume or directory. Google hasn't been of help and I'm looking for a way to do this. Can anyone help? I think is was some use of the 'du' command piped to something else, but I can't remember. 3/1/2007 11:04:25 AM |
darkone (\/) (;,,,;) (\/) 11610 Posts user info edit post |
I's found an example which pipes du to sort to tail. It works ok.
I'm trying to get the total home directory size for my workgroup under 40G so we don't overfill our daily backup tapes and I wanted to know what files/directories in the home directory volume were taking up the most space. 3/1/2007 11:34:45 AM |
ncsuapex SpaceForRent 37776 Posts user info edit post |
try du -ah | sort -n -r | more
or
du -sh * | sort -nr | head
or
ls -lSh | head
[Edited on March 1, 2007 at 11:59 AM. Reason : .] 3/1/2007 11:54:46 AM |
clalias All American 1580 Posts user info edit post |
du -hs / |sort -n
[Edited on March 1, 2007 at 12:07 PM. Reason : or something like that.]
not sure I don't have the permissions
du -hs /home |sort -n ??
[Edited on March 1, 2007 at 12:11 PM. Reason : ??] 3/1/2007 12:06:18 PM |
smoothcrim Universal Magnetic! 18966 Posts user info edit post |
midnight commander 3/1/2007 12:10:10 PM |
Skack All American 31140 Posts user info edit post |
Right click -> Arrange Icons By -> Size
Oh wait...You're on a vastly superior Lunix OS. 3/1/2007 1:10:39 PM |
jbtilley All American 12797 Posts user info edit post |
Works great for files. Directories, not so much. 3/1/2007 1:13:47 PM |