Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[开源自荐]显示磁盘使用情况的工具(Linux、 macOS 和 Windows) #2567

Open
chenquan opened this issue Aug 14, 2022 · 0 comments
Open

Comments

@chenquan
Copy link

chenquan commented Aug 14, 2022

项目地址:https://github.com/chenquan/diskusage

image

$ diskusage -h
A tool for showing disk usage.

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

Usage:
  diskusage [flags]

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      dir path (default "./")
  -f, --filter string   regular expression filter (default ".+")
  -h, --help            help for diskusage
  -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

👀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 GM: diskusage -u G
  3. Supports color output to pipeline: diskusage -c always | less -R or diskusage -c always | more
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants