duviz is a (Python 3) command-line tool to visualize disk space usage.
It’s like the plethora of desktop applications and widgets (e.g. Filelight, DaisyDisk, WinDirStat, JDiskReport, TreeSize, SpaceSniffer, …), but instead of a fancy GUI with animated pie charts and shaded boxes you get a funky “ASCII art style hierarchical tree of bars” in your shell.
This is free and open source software.
Key Features
- Basically it consists of just one Python 3 script duviz.py. No installation required: put it where you want it. Use it how you want it.
- Only uses standard library and just depends on du and ls utilities, which are available out of the box on a typical Unix platform (Linux, macOS)
- Speed. No need to wait for a GUI tool to get up and running, let alone scanning your disk. The hard work is done by du (or ls), which run an C-speed.
- Progress reporting while you wait. Be hypnotized!
- Detects your terminal width for maximum visualization pleasure.
- Not only supports “disk usage” based on file size, but also allows to count files (inode count mode) or give a size breakdown of ZIP or tar files.
- Option to use terminal colors for the boxes instead of ASCII art.
Website: github.com/soxofaan/duviz
Support:
Developer: Stefaan Lippens
License: MIT License

duviz is written in Python. Learn Python with our recommended free books and free tutorials.
Related Software
| du alternatives | Programming Language | License |
|---|---|---|
| dust | Rust | Apache License 2.0 |
| duf | Go | MIT License |
| Duc | C | GNU Lesser General Public License v3 |
| Ncdu | C | GNU GPL v2.0 License |
| gdu | Go | MIT License |
| cull | Go | MIT License |
| dua | Rust | MIT License |
| erdtree | Rust | MIT License |
| pdu | Rust | Apache License 2.0 |
| vizex | Python | MIT License |
| godu | Go | MIT License |
| dutree | Rust | GNU General Public License v3 |
| space | Rust | MIT License |
| darya | Rust | GNU General Public License v3.0 |
| diskus | Rust | MIT License or Apache License 2.0 |
| NoxDir | Go | MIT License |
| mcdu | Rust | MIT License |
| dirstat-rs | Rust | MIT License |
| diskonaut | Rust | MIT License |
| bonsai | C++ | GNU General Public License v3.0 |
| diskard | Rust | MIT License or Apache License 2.0 |
| cdu | Perl | GNU General Public License v2.0 |
| tdu | Go | GNU General Public License v2 |
| duviz | Python | MIT License |
| dut | C | GNU General Public License v3.0 |
| whalespotter | Rust | MIT License |
| sn | Rust | BSD 3-Clause “New” or “Revised” License |
Read our verdict in the software roundup.
Explore our carefully curated directory of recommended free and open source software, covering every major software category.The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk. LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more. Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form. |


Please read our Comment Policy before commenting.