find disk usage linux code example
Example 1: linux check used space in folder
du -h --max-depth=1
Example 2: linux disk usage
#sudo apt-get install ncdu
sudo ncdu -rx /
# -r = read-only
# -x = do not traverse mounts
du -h --max-depth=1
#sudo apt-get install ncdu
sudo ncdu -rx /
# -r = read-only
# -x = do not traverse mounts