How to find the largest directories in a directory

Solution Verified - Updated -

Issue

  • How can we find the largest directories in a given directory, i.e., get a list of directories sorted by the amount of space their files and subdirs take up, with the biggest ones at the top. One more requirement: we'd like to see the sizes in something easily human-readable; not in bytes or KiB.

Environment

  • Red Hat Enterprise Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content