du command linux usage

C++
Ubuntu DU for file:
du -h --human-readable <fileName>

Ubuntu DU for directory:
du -a --all <dir>
Source

Also in C++: