How to find the largest directories in a directory
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.