bash size file

C++
du -hs file/or/folder/path

---------------------------------------------------
-h for human readable
-s for summary: only total amount, not single files
Source

Also in C++: