Page 1 of 1

ubuntu show top largest directories

Posted: Thu Aug 30, 2018 7:45 pm
by Stevyn
https://serverfault.com/questions/20094 ... nix-ubuntu


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
topsites.txt will contain top 10 website disk hogs

Re: ubuntu show top largest directories

Posted: Sat Dec 29, 2018 11:03 am
by Stevyn

Code: Select all

df -h
disk space in human readable format