List all directories and sort by size - LinuxConfig.org

When it comes to tidying up your hard drive on Linux, either to free up space or to become more organized, it's helpful to identify which directories are consuming the most storage space.

In this guide, we'll show you how to list all directories and sort them by their total size on Linux, through command line examples, a Bash script, and GUI methods.


This is a companion discussion topic for the original entry at https://linuxconfig.org/list-all-directories-and-sort-by-size