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
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
try du -ah | sort -n -r | moreordu -sh * | sort -nr | headorls -lSh | head[Edited on March 1, 2007 at 11:59 AM. Reason : .]
3/1/2007 11:54:46 AM
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 permissionsdu -hs /home |sort -n ??[Edited on March 1, 2007 at 12:11 PM. Reason : ??]
3/1/2007 12:06:18 PM
midnight commander
3/1/2007 12:10:10 PM
Right click -> Arrange Icons By -> SizeOh wait...You're on a vastly superior Lunix OS.
3/1/2007 1:10:39 PM
Works great for files. Directories, not so much.
3/1/2007 1:13:47 PM