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.
Metadata
Release files for diskview 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| diskview-0.1.0.tar.gz | 8.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| diskview-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.6 kB
Release files / diskview-0.1.0.tar.gz
| Download URL | diskview-0.1.0.tar.gz |
|---|---|
| Size | 8.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
63d7183bcc71bc4eb74d5d93e3b21ab3b4cba1aeac589db67f84fb8e88c9a445
|
|
BLAKE2b-256 checksum How to use checksums |
3181054288945cffc70dae3822a3ec878f80a71f2d416657ee13bc0ed7e24fd8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / diskview-0.1.0-py3-none-any.whl
| Download URL | diskview-0.1.0-py3-none-any.whl |
|---|---|
| Size | 8.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
aaf90fc95a6fc562638bd812918e93fa29d613d0f38190a569bf04e88ed32ac3
|
|
BLAKE2b-256 checksum How to use checksums |
d1cea1838c7f432d2a7b1d5a9a0ee3d98e3ad6c09eb13ff3542ba7994eafd33e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|