# diskonaut

> Interactive disk usage analyzer with treemap visualization for exploring and cleaning up disk space

Stars: 3.1k · Categories: File Management

- Repository: https://github.com/imsnif/diskonaut
- Page: https://www.trmn.sh/tools/diskonaut

## Install

- Homebrew: `brew install diskonaut`
- Cargo: `cargo install diskonaut`
- DNF: `sudo dnf install diskonaut`

## Overview

Diskonaut is a terminal-based disk usage analyzer that provides interactive exploration of filesystem storage consumption. The tool scans a specified directory path and indexes file metadata to memory, creating a visual treemap representation that shows which files and folders consume the most disk space. Users can navigate through subdirectories interactively while the scanning process continues in the background.

The tool includes file management capabilities, allowing users to delete files and folders directly from the interface. Diskonaut tracks space freed during each session, providing immediate feedback on cleanup efforts. The treemap visualization makes it easy to identify large files and directories that may be consuming unexpected amounts of storage.

Diskonaut supports Linux, macOS, and Windows, with installation available through multiple package managers including Homebrew, DNF, AUR, and Nix. The tool can be started in the current directory or pointed to any specific path, making it useful for system administrators, developers, and anyone needing to analyze disk usage patterns and free up storage space.

### Installation

```bash
# via Homebrew
brew install diskonaut
```

```bash
# via Cargo
cargo install diskonaut
```

```bash
# via DNF
sudo dnf install diskonaut
```

![Diskonaut treemap interface demo](https://media.trmn.sh/cached/c46533180b3e90fd2ba87dff22ac24f0a8e152316e43f3ce68449a26b000b2b8.gif)

## Alternatives

- [viu](https://www.trmn.sh/tools/viu.md): Rust command-line image viewer for the terminal using the iTerm or Kitty graphics protocols, with a half-block fallback and animated GIF support. (Rust, 3.3k stars)
- [fclones](https://www.trmn.sh/tools/fclones.md): Command-line duplicate file finder and remover with parallel processing and multiple deduplication strategies. (3.0k stars)
- [erdtree](https://www.trmn.sh/tools/erdtree.md): Multi-threaded filesystem and disk usage utility with gitignore awareness, multiple layouts, and file search capabilities (2.6k stars)
- [doxx](https://www.trmn.sh/tools/doxx.md): Terminal-native .docx document viewer with formatting, search, and export capabilities (3.8k stars)
- [ouch](https://www.trmn.sh/tools/ouch.md): CLI tool for compressing and decompressing files across 14+ formats with automatic format detection (Rust, 3.8k stars)

## Guides

- [Modern Replacements for du](https://www.trmn.sh/replace/du): Compare dust, dua, erdtree and pdu as replacements for du: output format, filtering, JSON output, gitignore handling and interactive deletion.
- [Best Disk Usage Analyzers](https://www.trmn.sh/best/disk-usage-analyzers): Compare dust, dua, and diskonaut plus pdu, cull and erdtree for finding what fills your disk from the terminal.

---

Canonical: https://www.trmn.sh/tools/diskonaut
