Linux command
exa 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List files
exa
Long format
exa -l
Show hidden files
exa -a
Tree view
exa --tree
Show git status
exa -l --git
Sort by modified
exa -l --sort=modified
Show file sizes
exa -lh
Extended attributes
exa -l --extended
说明
exa is a modern replacement for ls written in Rust. It provides colorful output, git integration, tree view, and more detailed file information in a user-friendly format. The tool defaults to human-readable sizes and sensible colors. Git integration shows file status in repository directories. Extended attributes and metadata are easily accessible. exa is faster than ls for most operations while providing significantly more features.
参数
- -l, --long
- Long format.
- -a, --all
- Show hidden files.
- --tree
- Tree view.
- --git
- Show git status.
- -s, --sort _FIELD_
- Sort by field.
- -h, --header
- Show header row.
- --icons
- Show file icons.
- --color _WHEN_
- Color mode: always, auto, never.
- --help
- Display help information.
FAQ
What is the exa command used for?
exa is a modern replacement for ls written in Rust. It provides colorful output, git integration, tree view, and more detailed file information in a user-friendly format. The tool defaults to human-readable sizes and sensible colors. Git integration shows file status in repository directories. Extended attributes and metadata are easily accessible. exa is faster than ls for most operations while providing significantly more features.
How do I run a basic exa example?
Run `exa` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -l, --long do in exa?
Long format.