linux terminal how to check disk space code example
Example 1: check ubuntu disk space
# shows total, available, and used.
df / -h
Example 2: linux how to show disk space
du -h --max-depth=1
Example 3: check disk space ubuntu from terminal
#report file system disk space usage
df -h
or
sudo du -sh ./*
or
du -h -s *
#check space with path
df / -h
or
df -h /
#check space with type
df -Th