Dust
简介 🧐
-
项目地址:https://github.com/bootandy/dust -
安装 🤭
-
cargo install du-dust
-
brew install dust
-
pacstall -I dust-bin
-
conda install -c conda-forge dust
-
winget install dust
-
yay -S dust
-
pacman -S dust
使用 😧
参数选项
0❯ dust --help
Like du but more intuitive
Usage: dust [OPTIONS] [params]...
Arguments:
[params]...
Options:
-d, --depth <depth>
Depth to show
-n, --number-of-lines <number_of_lines>
Number of lines of output to show. (Default is terminal_height - 10)
-p, --full-paths
Subdirectories will not have their path shortened
-X, --ignore-directory <ignore_directory>
Exclude any file or directory with this name
-I, --ignore-all-in-file <ignore_all_in_file>
Exclude any file or directory with a regex matching that listed in this file, the file entries will be added to the ignore regexs provided by --invert_filter
-L, --dereference-links
dereference sym links - Treat sym links as directories and go into them
-x, --limit-filesystem
Only count the files and directories on the same filesystem as the supplied directory
-s, --apparent-size
Use file length instead of blocks
-r, --reverse
Print tree upside down (biggest highest)
-c, --no-colors
No colors will be printed (Useful for commands like: watch)
-C, --force-colors
Force colors print
-b, --no-percent-bars
No percent bars or percentages will be displayed
-B, --bars-on-right
percent bars moved to right side of screen
-z, --min-size <min_size>
Minimum size file to include in output
-R, --screen-reader
For screen readers. Removes bars. Adds new column: depth level (May want to use -p too for full path)
--skip-total
No total row will be displayed
-f, --filecount
Directory 'size' is number of child files instead of disk size
-i, --ignore_hidden
Do not display hidden files
-v, --invert-filter <invert_filter>
Exclude filepaths matching this regex. To ignore png files type: -v ".png$"
-e, --filter <filter>
Only include filepaths matching this regex. For png files type: -e ".png$"
-t, --file_types
show only these file types
-w, --terminal_width <width>
Specify width of output overriding the auto detection of terminal width
-P, --no-progress
Disable the progress indication.
-D, --only-dir
Only directories will be displayed.
-F, --only-file
Only files will be displayed. (Finds your largest files)
-o, --output-format <output_format>
Changes output display size. si will print sizes in powers of 1000. b/bytes kb kib mb mib gb gib will print the whole tree in that size
-S, --stack-size <stack_size>
Specify memory to use as stack size - use if you see: 'fatal runtime error: stack overflow' (default low memory=1048576, high memory=1073741824)
-h, --help
Print help
-V, --version
Print version
Refences 😜
-
https://github.com/bootandy/dust
原文始发于微信公众号(人遁安全):现代化命令替代方案 :dust
免责声明:文章中涉及的程序(方法)可能带有攻击性,仅供安全研究与教学之用,读者将其信息做其他用途,由读者承担全部法律及连带责任,本站不承担任何法律及连带责任;如有问题可邮件联系(建议使用企业邮箱或有效邮箱,避免邮件被拦截,联系方式见首页),望知悉。
- 左青龙
- 微信扫一扫
-
- 右白虎
- 微信扫一扫
-
评论