daknetworks.com

You are here: Blog Find the Size of the current directory

Find the Size of the current directory

I can never remember how to find the size of the current directory in linux. Here it is:

du --max-depth=1

And to make is human readable and sorted by number:

du -h --max-depth=1 |sort -n

Contact Dak Networks

We are not taking on new clients at this time.