Article may be outdated

This article is 82 days old. Some details may have changed since publication.

Hacker News·2 min read·medium

Show HN: Leaves – a text-UI disk usage treemap visualizer

P
patonw
Show HN: Leaves – a text-UI disk usage treemap visualizer
✦AI Summary

Leaves is a new text-based disk usage visualizer for terminal environments, inspired by graphical tools like WinDirStat. It uses a treemap layout to represent file sizes, providing a lightweight alternative for users working over remote shell connections.

Why it matters

It offers a practical solution for system administrators and developers who need to manage disk space in environments where graphical interfaces are unavailable.

✦Dive DeeperCreate a free account to unlock

A text-mode disk usage visualization utility

Leaves is a disk usage analyzer inspired by WinDirStat and QDirStat.

It shows files and directories in a hierarchy of nested rectangles. The area of a rectangle is proportional to its size. A 200 MB file will have twice the size as a sibling with 100 MB. The parent directory will have about 3 times the area of the smaller file.

However, due to the limited resolution of working at a character level, this is a fairly coarse approximation compared to a graphical tool. On the other hand, this will work over remote shell connections when graphical desktop environments are not available or impractical.

You can download a pre-built binary for a select number of platforms from the releases page. If one is not available for your system, follow this section to build from source.

A Rust toolchain is required to build this project.

Continue reading on Headlinne

Create a free account to read the full article.

Read full article →
technologyscience
✦

Get smarter about the news

Sign up free for a feed built around what you actually care about, Dive Deeper research on any story, and the full text of every article.

Create free account

Already have an account? Sign in