exa(1) | exa(1) |
exa — a modern replacement for ls
exa [options] [files...]
exa is a modern replacement for ls. It uses colours for information by default, helping you distinguish between many types of files, such as whether you are the owner, or in the owning group.
It also has extra features not present in the original ls, such as viewing the Git status for a directory, or recursing into directories with a tree view.
Valid sort fields are `name', `Name', `extension', `Extension', `size', `modified', `changed', `accessed', `created', `inode', `type', and `none'.
The modified sort field has the aliases `date', `time', and `newest', and its reverse order has the aliases `age' and `oldest'.
Sort fields starting with a capital letter will sort uppercase before lowercase: `A' then `B' then `a' then `b'. Fields starting with a lowercase letter will mix them: `A' then `a' then `B' then `b'.
These options are available when running with --long (-l):
This adds a two-character column indicating the staged and unstaged statuses respectively. The status character can be `-' for not modified, `M' for a modified file, `N' for a new file, `D' for deleted, `R' for renamed, `T' for type-change, `I' for ignored, and `U' for conflicted.
Directories will be shown to have the status of their contents, which is how `deleted' is possible: if a directory contains a file that has a certain status, it will be shown to have that status.
exa responds to the following environment variables:
Overrides the width of the terminal, in characters.
For example, `COLUMNS=80 exa' will show a grid view with a maximum width of 80 characters.
This option won’t do anything when exa’s output doesn’t wrap, such as when using the --long view.
Enables strict mode, which will make exa error when two command-line options are incompatible.
Usually, options can override each other going right-to-left on the command line, so that exa can be given aliases: creating an alias `exa=exa --sort=ext' then running `exa --sort=size' with that alias will run `exa --sort=ext --sort=size', and the sorting specified by the user will override the sorting specified by the alias.
In strict mode, the two options will not co-operate, and exa will error.
This option is intended for use with automated scripts and other situations where you want to be certain you’re typing in the right command.
Limits the grid-details view (`exa --grid --long') so it’s only activated when at least the given number of rows of output would be generated.
With widescreen displays, it’s possible for the grid to look very wide and sparse, on just one or two lines with none of the columns lining up. By specifying a minimum number of rows, you can only use the view if it’s going to be worth using.
Specifies the number of spaces to print between an icon (see the `--icons' option) and its file name.
Different terminals display icons differently, as they usually take up more than one character width on screen, so there’s no “standard” number of spaces that exa can use to separate an icon from text. One space may place the icon too close to the text, and two spaces may place it too far away. So the choice is left up to the user to configure depending on their terminal emulator.
Specifies the colour scheme used to highlight files based on their name and kind, as well as highlighting metadata and parts of the UI.
For more information on the format of these environment variables, see the exa_colors(5) manual page.
exa is maintained by Benjamin `ogham' Sago and many other contributors.
Website: https://the.exa.website/
Source code: https://github.com/ogham/exa
Contributors: https://github.com/ogham/exa/graphs/contributors
v0.9.0 |