2017-10-27 15:38:37 +01:00
|
|
|
# exa
|
|
|
|
|
2017-10-28 19:32:54 +01:00
|
|
|
> A modern replacement for `ls` (List directory contents).
|
2019-06-08 01:04:00 +01:00
|
|
|
> More information: <https://the.exa.website>.
|
2017-10-27 15:38:37 +01:00
|
|
|
|
|
|
|
- List files one per line:
|
|
|
|
|
|
|
|
`exa --oneline`
|
|
|
|
|
|
|
|
- List all files, including hidden files:
|
|
|
|
|
|
|
|
`exa --all`
|
|
|
|
|
|
|
|
- Long format list (permissions, ownership, size and modification date) of all files:
|
|
|
|
|
|
|
|
`exa --long --all`
|
|
|
|
|
2017-10-28 19:32:54 +01:00
|
|
|
- List files with the largest at the top:
|
2017-10-27 15:38:37 +01:00
|
|
|
|
2017-10-28 19:32:54 +01:00
|
|
|
`exa --reverse --sort={{size}}`
|
2017-10-27 15:38:37 +01:00
|
|
|
|
|
|
|
- Display a tree of files, three levels deep:
|
|
|
|
|
2017-10-28 19:32:54 +01:00
|
|
|
`exa --long --tree --level={{3}}`
|
2017-10-27 15:38:37 +01:00
|
|
|
|
2017-10-28 19:32:54 +01:00
|
|
|
- List files sorted by modification date (oldest first):
|
2017-10-27 15:38:37 +01:00
|
|
|
|
2017-10-28 19:32:54 +01:00
|
|
|
`exa --long --sort={{modified}}`
|
2021-05-12 20:02:12 +01:00
|
|
|
|
|
|
|
- List files with their headers, icons, and Git statuses:
|
|
|
|
|
|
|
|
`exa --long --header --icons --git`
|
|
|
|
|
|
|
|
- Don't list files mentioned in `.gitignore`:
|
|
|
|
|
|
|
|
`exa --git-ignore`
|