list size of directory linux code example
Example 1: linux how to know whhich directory used more soace
$ du -h --max-depth=1 | sort -hr
Example 2: ubuntu du sort by dir size
du -Sh /path/to/dir | sort -rh | head -20
Example 3: check folder sizes linux
du -h --max-depth=1
Example 4: linux command to list directory size
sudo du -sh /var
Example 5: check folder size in linux terminal
du -sh /home/user/