How to list disk usage in Linux shell

A very simple technique to list disk usage by top level directory in the linux shell:-

du -sh `find -maxdepth 1`

Note the back single quote which you normally find top left of your keyboard.

And you can change the maxdepth as required ..

Did you know you can hire me?

I take on projects of all sizes. From Consulting to large Development Projects.

If you're starting a new Yii project and would like some help to get setup and running or you need some help with a particular module or you just need someone to develop the whole dang thing, then just ask ...

Jumpstart Yii2 ... Coming Soon!

I'm in the process of planning a new course on Yii2 and want your feedback.

What is your preferred format? What did you think of my Yii 1.x video course "Beginning Yii"?

What would you like to see different?

How much would you pay?

Leave a Comment