bash disk usage by folder code example
Example 1: linux how to know whhich directory used more soace
$ du -h --max-depth=1 | sort -hr
Example 2: du command linux usage
Ubuntu DU for file:
du -h --human-readable <fileName>
Ubuntu DU for directory:
du -a --all <dir>