how to check storage space ubuntu terminal code example
Example 1: see total space available in shell
df -hx squashfs --total
Example 2: linux disk usage
#sudo apt-get install ncdu
sudo ncdu -rx /
# -r = read-only
# -x = do not traverse mounts
df -hx squashfs --total
#sudo apt-get install ncdu
sudo ncdu -rx /
# -r = read-only
# -x = do not traverse mounts