bash how to check free disk space in Linux

C++
# Basic syntax:
df -h
# Where the -h flag ensures a "human readable" formatdf -h
Source

Also in C++: