• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • VCS
  • Interview Questions
  • Database
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

diskonaut: Terminal disk space navigator, written in Rust

by admin

“diskonaut” is a terminal-based disk space navigator tool that helps users visualize and navigate through disk usage information. It is implemented in the Rust programming language, offering a fast and efficient way to explore disk space usage.

The main purpose of “diskonaut” is to provide a visual representation of how disk space is utilized on a specific drive or directory. By scanning the target location, it generates a graphical representation that shows the distribution of disk usage in a hierarchical manner.

When executed, “diskonaut” starts scanning the specified drive or directory, collecting information about file and directory sizes. It then generates a navigable tree map, where each directory and file is represented by a colored rectangle. The size of each rectangle corresponds to the size of the corresponding file or directory, allowing users to quickly identify space-consuming elements.

The tree map generated by “diskonaut” is displayed in the terminal, utilizing ASCII characters and colors. Users can navigate through the tree map using keyboard commands to zoom in and out, move around, and expand or collapse directory nodes. This interactive navigation feature enables users to explore disk usage patterns, identify large files or directories, and pinpoint areas of high disk utilization.

The visualization provided by “diskonaut” helps users gain insights into their disk usage and identify areas that may be consuming excessive space. This can be particularly useful for managing disk space, identifying files or directories that can be safely deleted or archived, and optimizing storage utilization.

Being implemented in Rust, “diskonaut” offers excellent performance and efficiency, making it suitable for scanning large disk volumes or directories efficiently. It leverages Rust’s low-level capabilities and multi-threading support to provide fast and responsive disk scanning and visualization.

diskonaut Command Examples

1. Start diskonaut in the current directory:

# diskonaut

2. Start diskonaut in a specific directory:

# diskonaut /path/to/directory

3. Show file sizes rather than their block usage on the disk:

# diskonaut --apparent-size /path/to/directory

4. Disable deletion confirmation:

# diskonaut --disable-delete-confirmation

Summary

In summary, “diskonaut” is a terminal-based disk space navigator tool written in Rust. It generates a visual representation of disk usage using a tree map, allowing users to explore and analyze disk space utilization in a hierarchical manner. By providing an interactive and efficient interface, “diskonaut” helps users identify space-consuming elements, optimize disk usage, and make informed decisions regarding storage management.

Filed Under: Linux

Some more articles you might also be interested in …

  1. eyeD3 Command Examples in Linux
  2. “kubectl describe” Command Examples
  3. lrzuntar Command Examples in Linux
  4. CentOS / RHEL 7 : Shutting Down, Suspending, or Rebooting Commands (systemctl)
  5. “git reset” Command Examples
  6. gnome-screenshot: command not found
  7. btrbk Command Examples in Linux
  8. lastlog: command not found
  9. distccd: Server daemon for the distcc distributed compiler
  10. rofi: command not found

You May Also Like

Primary Sidebar

Recent Posts

  • Vanilla OS 2 Released: A New Era for Linux Enthusiasts
  • mk Command Examples
  • mixxx Command Examples
  • mix Command Examples

© 2025 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright