← 返回命令列表

Linux command

erdtree 命令

文件

复制后可按需替换文件名、目录或参数。

常用示例

Display

erdtree [directory]

Show

erdtree -s [directory]

Show

erdtree --git [directory]

Limit

erdtree -L 3 [directory]

Show

erdtree -d [directory]

说明

erdtree is a modern tree command replacement with additional features like disk usage reporting, git integration, and improved visual formatting. It combines the functionality of tree and du with a clean, fast interface. The tool can display file sizes, git status indicators, and customizable sorting. It's designed to be faster than traditional tree implementations while providing more useful information.

参数

-d, --dirs-only
Show only directories
-L, --level _N_
Limit tree depth to N levels
-s, --size
Show file and directory sizes
-h, --human-readable
Show sizes in human-readable format
--git
Show git status (modified, untracked, ignored)
--no-git
Disable git integration
--ignore _PATTERN_
Ignore files matching pattern
-I, --ignore-git
Respect .gitignore rules
-a, --all
Show hidden files
-P, --prune
Prune empty directories
--sort _TYPE_
Sort by: name, size, time, git
--dirs-first
Show directories before files
-o, --output _FILE_
Output to file instead of stdout
-v, --version
Display version and exit
--help
Display help and exit

FAQ

What is the erdtree command used for?

erdtree is a modern tree command replacement with additional features like disk usage reporting, git integration, and improved visual formatting. It combines the functionality of tree and du with a clean, fast interface. The tool can display file sizes, git status indicators, and customizable sorting. It's designed to be faster than traditional tree implementations while providing more useful information.

How do I run a basic erdtree example?

Run `erdtree [directory]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -d, --dirs-only do in erdtree?

Show only directories