ubuntu show top largest directories
Posted: Thu Aug 30, 2018 7:45 pm
https://serverfault.com/questions/20094 ... nix-ubuntu
I always use syntax like
max-depth and head parameters can vary, of course, but the above would list 20 biggest directories.
Nov 12 '10 at 8:08
Janne Pikkarainen
update:
what I now use
topsites.txt will contain top 10 website disk hogs
I always use syntax like
Code: Select all
du -sm --max-depth=4 /path/i/want/to/drill | sort -nr | head -n 20
max-depth and head parameters can vary, of course, but the above would list 20 biggest directories.
Nov 12 '10 at 8:08
Janne Pikkarainen
update:
what I now use
Code: Select all
du -h --max-depth=1 /home/forge/ | sort -hr | head -n 11 > topsites.txt