# eza — a modern `ls` (icons, git, tree, colour)
`eza` replaces `ls`. Your `ls`/`ll`/`la` are already eza. Colours come from
`~/.config/eza/theme.yml` (VHS Phosphor). Call this card with **`cheat eza`**,
**`eza-help`**, or **`lhelp`**.
> Anatomy: `eza [flags] [path]` — default is the current dir.
> Everything below is a ready-made alias; the raw `eza …` is shown so you can
> remix. Run `alias | grep " eza"` to see them all live.
---
## 1. THE DAILY THREE
```sh
ls # eza --icons --group-directories-first (grid, dirs first)
ll # eza --long --header --icons … (detailed, one per line)
la # ll + --all (include dotfiles)
l # eza --oneline --icons (bare names, one per line)
```
`--long` columns: permissions · size · owner · modified · name.
## 2. TREE VIEW
```sh
tree # eza --tree --level=2 --icons (2 levels deep)
lt lt3 lt4 # tree at 2 / 3 / 4 levels
lta # tree, level 2, include hidden
ltf # full tree, ALL levels
ltg # tree + git status column
```
## 3. GIT-AWARE
```sh
lg # long + --git (status column: M=modified A=added ?=untracked)
lga # lg + all
lgi # long + --git-ignore (hide .gitignore'd files)
```
## 4. SORTING
```sh
lm lma # by modified, newest first (lmo = oldest first)
lz lza # by size, largest first (lzr = smallest first)
le lea # by extension
lk # by kind/type
lbig # the 20 largest here
lrecent # the 20 most-recently modified
```
Raw: `eza -l --sort=size|modified|extension|type|name [--reverse]`.
## 5. TIME COLUMNS
```sh
ltr # relative time ("3 hours ago")
ltd # long-iso ("2026-06-07 14:02")
lc lac # show CREATED time
lmu lmua # show modified + accessed together
```
## 6. DIRS vs FILES ONLY
```sh
ld lda # directories only (lda = + hidden)
lf lfa # files only
ldot # dotfiles only
ll. # dotfiles, detailed
lsd # directories, detailed, by size
```
## 7. GRID / COLUMNS / ONELINE
```sh
lx lxa # grid layout (lxa = + hidden)
l1 l1a # one entry per line
lcc # compact across-columns
lc1 # oneline + classify (trailing */ /= markers)
```
## 8. SIZES, PERMS, INODES, LINKS
```sh
lh lha # human/binary sizes (KiB/MiB)
lp lpa # octal permissions (e.g. 0644) alongside rwx
lb # show block counts
lin # show inode numbers
llink # show what symlinks point to
```
## 9. RECURSE & DISK
```sh
lr lra # recurse 2 levels, long
lrr # recurse ALL levels
ldisk # all, by size desc, with --total-size (dir sizes summed)
lall # the kitchen sink: long + all + git + extended attrs
```
---
## 10. RAW FLAGS WORTH KNOWING
| Flag | Does |
|------|------|
| `-l --long` | detailed columns |
| `-a --all` | include dotfiles (`-aa` = include `.`/`..`) |
| `-T --tree` | tree view · pair with `-L/--level=N` |
| `-R --recurse` | recurse without the tree drawing |
| `--git` / `--git-ignore` | git status column / respect .gitignore |
| `-s --sort=` | name·size·modified·created·extension·type·none |
| `-r --reverse` | flip sort order |
| `--group-directories-first` | dirs on top |
| `-G --grid` / `-1 --oneline` | layouts |
| `--icons` / `--no-icons` | nerd-font icons on/off |
| `-h --header` | column headers in long view |
| `--total-size` | real recursive size of each dir (slow but honest) |
| `--time-style=` | relative · iso · long-iso · full-iso |
| `--octal-permissions` | numeric perms |
## 11. COMBOS WITH OTHER TOOLS
```sh
eza -l --sort=size ~/Downloads | head # biggest downloads, quick
fd -t d -d1 | xargs eza -ld # list every subdir, detailed
eza --tree --level=2 --git # project map + git state
ll **/*.zip # zsh glob + eza (** = recurse)
```
## 12. THEME & ICONS
- Colours: `~/.config/eza/theme.yml` (auto-loaded; VHS Phosphor palette).
- Override ad-hoc with `EZA_COLORS` (LS_COLORS syntax), e.g. `di=1;32`.
- Icons need a Nerd Font in the terminal (you have one). `--no-icons` to disable.
- Tweak the theme: edit `theme.yml`, open a new shell, done — no reload flag.
## 13. NOTES
- `eza` is **not** 100% `ls`-flag compatible (no `-G` for "no group" — that's
`--no-user`; `-G` means grid). When a script needs real `ls`, call `command ls`.
- Fast: parallelised, single stat pass. Tree + git on a huge repo is still cheap.
`lhelp`/`eza-help`/`cheat eza` = this card · `cheat menu` = browse all cheats.