linux get free space in gb code example
Example 1: check ubuntu disk space
# shows total, available, and used.
df / -h
Example 2: bash how to check free disk space in Linux
# Basic syntax:
df -h
# Where the -h flag ensures a "human readable" format