Skip to content

💥A tool for showing disk usage(Linux, MacOS and Windows), it is a very fast utility to find largest directories or files.

License

Notifications You must be signed in to change notification settings

chenquan/diskusage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

diskusage

Release Download GitHub

English | 简体中文

💥A tool for showing disk usage. (Linux, MacOS and Windows)

😜installation

go install github.com/chenquan/diskusage@latest

or download.

👏how to use

$ diskusage -h
A tool for showing disk usage.

GitHub: https://github.com/chenquan/diskusage
Issues: https://github.com/chenquan/diskusage/issues

Usage:
  diskusage [flags]

Examples:
1.The maximum display unit is GB: diskusage -u G
2.Only files named doc or docx are counted:
  a.diskusage -t doc,docx
  b.diskusage -f ".+\.(doc|docx)$"
3.Supports color output to pipeline:
  a.diskusage -c always | less -R
  b.diskusage -c always | more
4.Displays a 2-level tree structure: diskusage -d 2
5.Specify the directory /usr: diskusage --dir /usr
6.Export disk usage to file: diskusage > diskusage.txt

Flags:
  -a, --all             display all directories, otherwise only display folders whose usage size is not 0
  -c, --color string    set color output mode. optional: auto, always, ignore (default "auto")
  -d, --depth int       shows the depth of the tree directory structure (default 1)
      --dir string      directory path (default "./")
  -D, --directory       only display directory
  -f, --filter string   regular expressions are used to filter files
  -h, --help            help for diskusage
  -l, --limit int       limit the number of files and directories displayed (default 9223372036854775807)
  -r, --recursion       automatically calculate directory depth, for recursively traversing all sub directories
  -t, --type strings    only count certain types of files  (default all)
  -u, --unit string     displayed units. optional: B(Bytes), K(KB), M(MB), G(GB), T(TB) (default "M")
  -v, --version         version for diskusage
  -w, --worker int      number of workers searching the directory (default 32)

👀example

  1. Only files named doc or docx are counted: diskusage -t doc,docx or diskusage -f ".+\.(doc|docx)$"
  2. The maximum display unit is GB: diskusage -u G
  3. Supports color output to pipeline: diskusage -c always | less -R or diskusage -c always | more

If you like or are using this project to learn or start your solution, please give it a star⭐. Thanks!

About

💥A tool for showing disk usage(Linux, MacOS and Windows), it is a very fast utility to find largest directories or files.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy