linux size of current directory and subdirectories code example Example: how to get the size of directory in linux du -sh /var