Interactive disk usage tree for your terminal
Project description
disktree
Interactive disk usage tree for your terminal. Find out what's eating your space.
pip install disktree
Usage
# Scan current directory
disktree
# Scan a specific path
disktree /path/to/dir
# Control depth and number of entries shown
disktree --depth 4 --top 15
# Hide small entries
disktree --min-size 10MB
# Sort by name instead of size
disktree --sort name
# JSON output (for scripting)
disktree --json | jq '.children[0]'
# Interactive TUI (requires: pip install disktree[tui])
disktree --tui
Output
C:\Users\you 245.3 GB
├── ##########------ 89.2 GB 36.4% Documents/
│ ├── ########-------- 67.1 GB 75.2% projects/
│ └── ##-------------- 22.1 GB 24.8% old_stuff/
├── ####------------ 45.8 GB 18.7% Downloads/
└── ##-------------- 23.1 GB 9.4% .cache/
Each row shows a proportional fill bar, the absolute size, percentage of the parent, and the name.
Options
| Flag | Default | Description |
|---|---|---|
--depth N |
3 | How many levels deep to display |
--top N |
10 | Max entries per level |
--min-size SIZE |
0 | Hide entries smaller than SIZE (e.g. 10MB, 500KB) |
--sort size|name |
size | Sort order |
--json |
off | Output JSON instead of tree |
--tui |
off | Interactive TUI (requires pip install disktree[tui]) |
Interactive TUI
Install the TUI extra:
pip install disktree[tui]
disktree --tui
Keys: arrow keys to navigate, Enter to expand/collapse, s to toggle sort, r to rescan, q to quit.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file diskview-0.1.0.tar.gz.
File metadata
- Download URL: diskview-0.1.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63d7183bcc71bc4eb74d5d93e3b21ab3b4cba1aeac589db67f84fb8e88c9a445
|
|
| MD5 |
9f0df176a4937ab45563f1817fd03abd
|
|
| BLAKE2b-256 |
3181054288945cffc70dae3822a3ec878f80a71f2d416657ee13bc0ed7e24fd8
|
File details
Details for the file diskview-0.1.0-py3-none-any.whl.
File metadata
- Download URL: diskview-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aaf90fc95a6fc562638bd812918e93fa29d613d0f38190a569bf04e88ed32ac3
|
|
| MD5 |
3dac58a52728d22892c89fd39371deae
|
|
| BLAKE2b-256 |
d1cea1838c7f432d2a7b1d5a9a0ee3d98e3ad6c09eb13ff3542ba7994eafd33e
|