total disk space in linux

C++
du -h --max-depth=1df -hdf
df -h
Source

Also in C++: