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

teamcity Automatic Agent Start under Linux

NFS mount add in fstab _netdev instead of default | firewall-cmd --list-all