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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
