disk usage command in unix code example
Example 1: linux disk usage
#sudo apt-get install ncdu
sudo ncdu -rx /
# -r = read-only
# -x = do not traverse mounts
Example 2: du command linux usage
Ubuntu DU for file:
du -h --human-readable <fileName>
Ubuntu DU for directory:
du -a --all <dir>