• Shell 'du' command
    4 replies, posted
Is there a way using the du command via SSH to list the filesystem space usage, starting with the biggest directory first? I can't find a command to do that. Maybe there's another command rather than du?
[code]du | sort -nr | head[/code] You could also try [url=http://dev.yorhel.nl/ncdu]ncdu[/url] instead.
That command just kind of hangs when I run it.
[QUOTE=faze;16166608]That command just kind of hangs when I run it.[/QUOTE] Will do for a few seconds. It recursivly reads the entire filesystem, including any mounts.
I ran 'du -h | sort -nr | head' and it just hangs. Been about 20 minutes now.
Sorry, you need to Log In to post a reply to this thread.