8000 GitHub - mtibben/duh: A `du`-like tool that gathers file and directory size statistics and plots to a histogram in realtime. · GitHub
[go: up one dir, main page]

Skip to content
mtibbenPublic

About

A `du`-like tool that gathers file and directory size statistics and plots to a histogram in realtime.

Resources

Stars

2 stars

Watchers

2 watching

Forks

Latest commit

 

History

9 Commits

Folders and files

Repository files navigation

Duh

A du-like tool that shows the size of files and directories in a live terminal histogram. Bars compare items at the top level, and the total includes files in subdirectories.

Install

go install github.com/mtibben/duh@latest

Run duh to scan the current directory, or pass a path such as duh ~/Downloads.

Run duh -i ~/Downloads to browse the histogram after the scan finishes. Use ↑ and ↓ to select a row, Enter to expand or collapse a directory, ← to collapse or move to its parent, and q to quit.

Example

$ duh ~
                 ####     6.3G   Dropbox
                 ####     6.3G   Projects
                 ####     6.5G   Pictures
                #####     9.2G   Downloads
        #############    23.8G   Library
    #################    30.8G   Music
 ####################    38.2G   VirtualBox VMs
               TOTAL:   137.7G   (827784 files)

Development

Use Go 1.27.4 or newer and golangci-lint v2.15.0.

go test ./...
golangci-lint run

TODO

  • colour
  • globbing

About

A `du`-like tool that gathers file and directory size statistics and plots to a histogram in realtime.

Resources

Stars

2 stars

Watchers

2 watching

Forks

Releases

Used by

Contributors

Languages

0