eza(1)
A modern replacement for ls that lists directory contents with colors, git integration, and better defaults.
Synopsis
eza [OPTION]... [FILE]...Description
eza is a modern alternative to the ls command, written in Rust, designed to be faster and more user-friendly. It displays file and directory listings with sensible color defaults, tree views, and built-in git status awareness.
It maintains compatibility with common ls options while adding new features like file type icons, extended attributes display, and git integration for showing file status in repositories.
Common options
| Flag | What it does |
|---|---|
-l, --long | Display in long format with file permissions, owner, size, and modification date |
-a, --all | Show hidden files (those starting with a dot) |
-R, --recurse | Recursively list all subdirectories |
-T, --tree | Display directory tree structure |
-h, --header | Add column headers to the output |
--git | Show git status for files (modified, staged, etc.) |
-1, --oneline | Display one file per line |
-s, --size | Display file sizes in human-readable format |
-d, --list-dirs | List directories as if they were regular files |
-G, --group-dirs | Group directories together before files |
--icons | Display file type icons alongside filenames |
Examples
Simple listing of current directory contents with colors
ezaLong format listing including hidden files
eza -laLong format with human-readable sizes and git status indicators
eza -lh --gitTree view of directories up to 3 levels deep
eza -T -L 3Long listing with file type icons and hidden files
eza --icons -laRecursive listing respecting .gitignore patterns and showing git status
eza -R --git-ignoreLong format with human-readable sizes sorted by size
eza -lh -sList directories in /etc without showing their contents
eza -d /etc/*/