The Linux command
du -h --block-size=MiB --max-depth=3 | sort -rn
shows the disk usage for each directory upto a depth of 3.
MiB is required to avoid showing all those long bytes numbers.
-h is for human readable format.
sort -rn sorts on the reverse numeric order, i.e. the most disk usage first
du -h --block-size=MiB --max-depth=3 | sort -rn
shows the disk usage for each directory upto a depth of 3.
MiB is required to avoid showing all those long bytes numbers.
-h is for human readable format.
sort -rn sorts on the reverse numeric order, i.e. the most disk usage first
Comments
Post a Comment