2025-03-14 21:59:59 -06:00
|
|
|
# exa
|
|
|
|
|
|
|
|
|
|
> A modern replacement for `ls` (List directory contents).
|
2025-07-24 22:27:13 -06:00
|
|
|
> More information: <https://github.com/ogham/exa#command-line-options>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- List files one per line:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`exa {{[-1|--oneline]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- List all files, including hidden files:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`exa {{[-a|--all]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Long format list (permissions, ownership, size and modification date) of all files:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`exa {{[-l|--long]}} {{[-a|--all]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- List files with the largest at the top:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`exa {{[-r|--reverse]}} {{[-s|--sort]}} {{size}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Display a tree of files, three levels deep:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`exa {{[-l|--long]}} {{[-T|--tree]}} {{[-L|--level]}} {{3}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- List files sorted by modification date (oldest first):
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`exa {{[-l|--long]}} {{[-s|--sort]}} {{modified}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- List files with their headers, icons, and Git statuses:
|
|
|
|
|
|
2025-07-24 22:27:13 -06:00
|
|
|
`exa {{[-l|--long]}} {{[-h|--header]}} --icons --git`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Don't list files mentioned in `.gitignore`:
|
|
|
|
|
|
|
|
|
|
`exa --git-ignore`
|