1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-05 14:55:24 +02:00
tldr/pages/common/exa.md

37 lines
877 B
Markdown
Raw Normal View History

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