← 返回命令列表

Linux command

eza 命令

文本

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

常用示例

List files with

eza --icons

Long format with

eza -l --git

Show hidden files

eza -a

Tree view

eza --tree --level [2]

Sort by modification

eza -l --sort modified

说明

eza is a modern replacement for ls, written in Rust. It provides colorful output, git integration, extended attributes display, and tree view capabilities out of the box. The tool improves on ls with features like git status integration, file icons, and better defaults for human-readable output. It recognizes many file types and displays them with distinctive colors and icons. eza is designed as a drop-in ls replacement while adding modern features developers expect from file listing tools.

参数

-l, --long
Display detailed list format.
-a, --all
Show hidden files (dotfiles).
--tree
Display as tree structure.
--level _N_
Tree depth limit.
--git
Show git status for each file.
--icons
Display file type icons.
-h, --header
Show column headers.
--sort _FIELD_
Sort by: name, size, modified, accessed, created.
-r, --reverse
Reverse sort order.
--group-directories-first
List directories before files.
--help
Display help information.

FAQ

What is the eza command used for?

eza is a modern replacement for ls, written in Rust. It provides colorful output, git integration, extended attributes display, and tree view capabilities out of the box. The tool improves on ls with features like git status integration, file icons, and better defaults for human-readable output. It recognizes many file types and displays them with distinctive colors and icons. eza is designed as a drop-in ls replacement while adding modern features developers expect from file listing tools.

How do I run a basic eza example?

Run `eza --icons` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -l, --long do in eza?

Display detailed list format.