SSD

leaves – terminal-based disk usage visualization utility

leaves is a disk usage analyzer for exploring where storage space is being consumed without leaving the terminal. Inspired by WinDirStat and QDirStat, it turns a directory hierarchy into a visual representation of relative file and folder sizes rather than relying on a conventional listing of paths and figures.

The application is particularly useful when working over SSH or administering systems without a graphical desktop. Its character-based display provides a coarser approximation than a graphical treemap, but offers a practical way to investigate storage usage from a remote shell.

This is free and open source software.

Key Features

  • Displays a nested treemap whose rectangular areas are roughly proportional to the sizes of files and directories.
  • Collapsible directory explorer with arrow-key navigation, mouse selection, and a details panel for the selected item.
  • Shows the current directory path, total size, and file count in the title bar.
  • Highlights the selected file or directory and its ancestors with prominent borders. Selection is synchronized between the tree and treemap.
  • Focus on a directory with Enter and return to its parent with Backspace.
  • Expand or deflate branches on demand, summarizing deeper contents by file extension. Adjust the detail depth using keyboard shortcuts.
  • X-ray mode groups files by type first and then by directory, offering another perspective on what consumes space.
  • Honours .gitignore and .ignore rules by default, with controls to include hidden or ignored files and custom exclusion globs.
  • Colour-codes files by extension and directories by name, making recurring types and folder structures easier to distinguish.
  • Offers built-in colour themes, custom palettes, dark-mode options, border styles, and configuration overrides through environment variables.
  • Does not follow symbolic links when scanning, avoiding counting their targets as additional contents.

Website: github.com/patonw/leaves
Support:
Developer: patonw
License: Mozilla Public License v2.0

leaves in action

leaves is written in Rust. Learn Rust with our recommended free books and free tutorials.


Related Software

du alternativesProgramming LanguageLicense
dustRustApache License 2.0
dufGoMIT License
DucCGNU Lesser General Public License v3
NcduCGNU GPL v2.0 License
gduGo MIT License
cullGoMIT License
duaRustMIT License
erdtreeRustMIT License
pduRustApache License 2.0
vizexPythonMIT License
goduGo MIT License
dutreeRustGNU General Public License v3
spaceRustMIT License
daryaRustGNU General Public License v3.0
diskusRustMIT License or Apache License 2.0
NoxDirGoMIT License
mcduRustMIT License
dirstat-rsRustMIT License
diskonautRustMIT License
bonsaiC++GNU General Public License v3.0
diskardRustMIT License or Apache License 2.0
cduPerlGNU General Public License v2.0
tduGoGNU General Public License v2
duvizPythonMIT License
dutCGNU General Public License v3.0
whalespotterRustMIT License
snRustBSD 3-Clause “New” or “Revised” License

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted