du -ah -d1
# ││ └─ depth
# │└─ human readable
# └─ all files, not only dirs
Warning
du -sh * # .files/folders would be missed! # └─ summarize (same as -d0)
du -ah -d1 -t100m | sort -hr
# │ └┴─ human, reverse
# └─ min threshold
Note
with old versions of
du
/sort
, use:du -a --max-depth 1 | sort -nr
du -ah0 -d1 -t100m | sort -hrz | perl -0lane 's:^\./:: for @F; print shift @F, " ", `ls -d --color "@F"`'
Note
du
: remove/increase-d1
in order to descend into directoriesdu
: skip files/folders with--exclude
with old versions of
du
/sort
, use:du -a --max-depth 1 | sort -nr | head | perl -ane 's:^\./:: for @F; print shift @F, " ", `ls -d --color "@F"`'
du -sh /folder