linux how to show disk space

C++
df -hdu -h --max-depth=1
Source

Also in C++: