How to list folders with their sizes on Linux

I catched myself I google for this every month or two, so I decided to write it here so I (and you) could always find it.

If you need to list all directories with their sizes use this:

du --max-depth=1 -h

Yes, its so simple :)

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.