Check dir size howto

It is useful to know how to check the size of a folder. All you need to do is to run next command:

# du -hs /dir/location/

For example:

[root@myserver /]# du -hs /mail/mydomain.com/
837M    /mail/mydomain.com/

In this case, the size is shown in MBs.

1 thought on “Check dir size howto

Leave a Reply

Your email address will not be published. Required fields are marked *