| Crates.io | dr_disk |
| lib.rs | dr_disk |
| version | 0.2.0 |
| created_at | 2025-08-04 05:22:36.842398+00 |
| updated_at | 2025-08-04 07:57:51.421101+00 |
| description | An interactive Rust CLI tool for disk usage analysis. |
| homepage | |
| repository | https://github.com/akhilburle/dr_disk.git |
| max_upload_size | |
| id | 1780317 |
| size | 58,034 |
dr_disk is an interactive command-line interface (CLI) tool written in Rust designed to help you analyze and manage disk space efficiently. It provides a clear, color-coded overview of file and directory sizes, making it easy to identify large files and folders that might be good candidates for cleanup.
To install dr_disk, you need to have Rust and Cargo installed on your system. If you don't have them, you can install them via rustup:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
Once Rust and Cargo are installed, you can install dr_disk using one of the following methods:
brew tap akhilburle/tap
brew install dr_disk
cargo install dr_disk
Clone the repository:
git clone https://github.com/akhilburle/dr_disk.git
cd dr_disk
Install from source:
cargo install --path .
Once installed, you can run dr_disk from any directory:
To run dr_disk in the current directory:
dr_disk
--total-disk-color: Use this flag to base the color thresholds on the total capacity of the disk where the scanned directory resides, instead of the total size of the currently displayed items. This is useful for understanding the impact of files relative to your entire storage.
dr_disk --total-disk-color
path: You can specify a different path to scan instead of the current directory:
dr_disk /path/to/another/directory
Once dr_disk is running, you can use the following commands in the interactive prompt (>):
cd <directory>: Change the current directory to the specified subdirectory... or up: Move up to the parent directory.q or quit: Exit the application.help: Display a list of available commands.The color of each entry (file or folder) indicates its size relative to a total. By default, this total is the sum of all items currently displayed in the list. If you use the --total-disk-color flag, the total will be the overall capacity of the disk.
These thresholds are dynamic and adapt to the context (either the current view or the total disk space) to provide meaningful visual cues.
This project is licensed under the MIT License - see the LICENSE file for details.