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