ubuntu see storage usage code example
Example 1: check ubuntu disk space
# shows total, available, and used.
df / -h
Example 2: see total space available in shell
df -hx squashfs --total
# shows total, available, and used.
df / -h
df -hx squashfs --total