Diskonaut – A Terminal Disk Space Navigator for Linux

diskonaut is a simple terminal disk space navigator built using Rust and supports Linux and macOS. To use it, specify an absolute path in your file system, for example, /home/tecmint or run it in the directory of interest, it will scan the directory and maps it to memory enabling you to explore its contents. It allows you to inspect space usage even during the scanning process.

When the scanning is complete, you can navigate through subdirectories, getting a visual treemap representation of what’s consuming your disk space. diskonaut allows you to delete files and directories and as a result, tracks the amount of space you have freed up in the process. It also supports keyboard shortcuts to ease navigation.

Read Also: How to Find Out Top Directories and Files (Disk Space) in Linux

In this article, you will learn how to install and use diskonaut in Linux systems.

Installing diskonaut in Linux

To install and use diskonaut, you should have Rust programming language installed on your system, if not, install it using the following command.

# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Once your system has Rust installed, you should be having the cargo (the Rust package manager) installed as well. Use cargo to install diskonaut on the system as shown.

# cargo install diskonaut
Install diskonaut in Linux
Install diskonaut in Linux

If you’re using Fedora, CentOS, and Arch Linux, you can install diskonaut latest prebuilt binary from the default repository as shown.

$ sudo dnf install diskonaut
$ yay diskonaut

Once diskonaut is installed, you can either start diskonaut in the directory you want to scan, or specify the absolute path of the directory to scan as an argument.

$ cd /home/aaronk
$ diskonaut
$ diskonaut /home/aaronk

At the bottom end, you can see the available keyboard shortcuts to use with diskonaut.

Scan Disk Space in Current Directory
Scan Disk Space in Current Directory

Once the scan is complete, you can select a subdirectory, for example, VirtualBox VMs, then click Enter to explore it.

Inspect Disk Space of Directories
Inspect Disk Space of Directories

diskonaut Github repository: https://github.com/imsnif/diskonaut

That’s all! diskonaut is a simple terminal disk space navigator used to quickly explore disk space usage on your storage facility. Give it a try and share your thoughts with us via the feedback form below.

Tutorial Feedback...
Was this article helpful? If you don't find this article helpful or found some outdated info, issue or a typo, do post your valuable feedback or suggestions in the comments to help improve this article...

If You Appreciate What We Do Here On TecMint, You Should Consider:

TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.

If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.

Support Us

We are thankful for your never ending support.

4 thoughts on “Diskonaut – A Terminal Disk Space Navigator for Linux”

  1. Other than the more “graphic” display of disk usage, is it any better than ncdu?

    I’d prefer ncdu because it is in the Repos of all distros I’ve used so far (Debian based).


Got something to say? Join the discussion.

Have a question or suggestion? Please leave a comment to start the discussion. Please keep in mind that all comments are moderated and your email address will NOT be published.