eza
Overview
eza is a modern, actively maintained replacement for ls. It provides color-coded output, file type icons, Git file status, tree views, and extended attribute visualization.
Syntax
eza [options] [path...]Common Options
| Option | Description |
|---|---|
-l, --long |
Display extended file attributes and metadata |
-a, --all |
Show hidden dotfiles |
-T, --tree |
Recurse into directories as a visual tree |
--git |
Show Git status for tracked files |
--icons |
Render contextual file/directory icons |
Key Use Cases
- Inspecting file metadata with Git integration in local repos.
- Generating quick file tree diagrams directly in the terminal.
- Colorized directory browsing with human-readable sizes.
Examples with Explanations
Example 1: Detailed File Listing with Git Status
eza -la --git --iconsLists all files (including hidden ones) with metadata, file icons, and Git modification flags.
Example 2: Tree View
eza -T -L 2Displays directory structure down to 2 levels deep as a tree.