How can I calculate the size of a directory? du -sh dir | ls ldh

du -sh directory_name
The -s option means that it won't list the size for each subdirectory, only the total size.

ls ldh




Comments

Popular posts from this blog

HAproxy logging

15 managing disk - understanding /etc/fstab xfs_admin mount -o rw,remount /

teamcity Automatic Agent Start under Linux