See where your disk space goes. Right in your terminal.

Free, open-source disk usage visualizer. Like WinDirStat, but for your terminal.

$ curl -fsSL https://get.lintree.sh | sh

Detects your OS and architecture automatically, downloads the latest release, and installs to /usr/local/bin.

Step 1: Download

PS> Invoke-WebRequest -Uri "https://github.com/PatchMon/lintree/releases/latest/download/lintree-windows-amd64.zip" -OutFile lintree.zip

Step 2: Extract

PS> Expand-Archive lintree.zip -DestinationPath .

Step 3: Run

PS> .\lintree-windows-amd64.exe C:\

Move the exe to a folder in your PATH to run from anywhere. For ARM devices, use lintree-windows-arm64.zip instead.

$ go install github.com/PatchMon/lintree@latest
$ git clone https://github.com/PatchMon/lintree.git
$ cd lintree
$ make build
lintree terminal disk usage visualization showing treemap of files and folders with color-coded file types

Built for the terminal

Everything you need to understand your disk usage, without leaving the command line.

Treemap Visualization

Proportional colored blocks show file sizes at a glance. Instantly see what is eating your disk space.

Color-Coded Files

Instantly identify file types by color: code, video, images, archives, and more at a glance.

Interactive Navigation

Drill into folders, go back, explore your entire disk. Full keyboard-driven navigation.

Fast Scanner

Concurrent filesystem walking that handles millions of files without breaking a sweat.

Cross-Platform

Works on Linux, macOS, and Windows. Same experience everywhere you need it.

Low Resource Usage

Minimal CPU and memory footprint, even on large filesystems with millions of entries.

Friends in the terminal ecosystem

lintree stands on the shoulders of amazing open-source tools. Here's how they each approach disk usage differently.

ToolLanguageTreemapInteractiveCross-Platform
lintreeGoYesYesLinux, macOS, Windows
ncduZig/CNoYesLinux, macOS, Windows
gduGoNoYesLinux, macOS, Windows
dustRustNoNo (static)Linux, macOS, Windows
duaRustNoYesLinux, macOS, Windows
WinDirStatC++YesYesWindows only

All of these are excellent tools. lintree's contribution is bringing treemap visualization to the terminal. Try them all and use what works best for you.

When to use lintree

Frequently asked questions

lintree is a free, open-source terminal disk usage analyzer that displays an interactive treemap visualization of your filesystem. It scans your directories and shows colored blocks proportional to file and folder sizes, making it easy to spot what's eating your disk space.
On Linux or macOS, run curl -fsSL https://get.lintree.sh | sh in your terminal. On Windows, download the zip from GitHub Releases and extract it. You can also install via go install github.com/PatchMon/lintree@latest if you have Go installed.
Yes, completely. lintree is open source under the MIT license. Use it, modify it, share it. The source code is on GitHub.
ncdu and gdu are fantastic tools that show disk usage in a sorted list view. lintree takes a different approach by displaying a treemap, where the size of each block represents the size of the file or folder. They're all great tools solving the same problem in different ways.
Yes. lintree is cross-platform and works on Linux (amd64, arm64), macOS (amd64, arm64), and Windows (amd64, arm64).