print size of the current directory linux code example Example 1: how to get the size of directory in linux du -sh /var Example 2: how to get the folder size in linux du -sh folder/