ubunut command view disk space code example
Example 1: check ubuntu disk space
# shows total, available, and used.
df / -h
Example 2: ubuntu check whats taking space
du -cha --max-depth=1 / | grep -E "M|G"
# shows total, available, and used.
df / -h
du -cha --max-depth=1 / | grep -E "M|G"