exa(1)
β¨ exa β a modern replacement for ls β¨
okay bestie, gather round, because this is exa, the manual page for exa (that's exa(1) if we're being formal π
), and it's literally a modern replacement for ls. it uses colours for information by default, which helps you tell apart all the many types of files β like whether you're the owner, or whether you're in the owning group. π
and it's got extra features the original ls could never, such as viewing the Git status for a directory, or recursing into directories with a tree view. no cap. π¦
πΈ SYNOPSIS πΈ
exa [options] [files...]
π EXAMPLES π
exaβ lists the contents of the current directory in a grid.exa --oneline --reverse --sort=sizeβ displays a list of files with the largest at the top.exa --long --header --inode --gitβ displays a table of files with a header, showing each file's metadata, inode, and Git status.exa --long --tree --level=3β displays a tree of files, three levels deep, as well as each file's metadata.
β¨ DISPLAY OPTIONS β¨
-1,--onelineβ display one entry per line.-F,--classifyβ display file kind indicators next to file names.-G,--gridβ display entries as a grid (this is the default, bestie).-l,--longβ display extended file metadata as a table.-R,--recurseβ recurse into directories.-T,--treeβ recurse into directories as a tree.-x,--acrossβ sort the grid across, rather than downwards.--color,--colour=WHENβ when to use terminal colours. valid settings arealways,automatic, andnever.--color-scale,--colour-scaleβ colour file sizes on a scale.--iconsβ display icons next to file names.--no-iconsβ don't display icons. (always overrides--iconsβ it's giving veto power π )
π FILTERING AND SORTING OPTIONS π
-a,--allβ show hidden and "dot" files. use this twice to also show the.and..directories.-d,--list-dirsβ list directories as regular files, rather than recursing and listing their contents.-L,--level=DEPTHβ limit the depth of recursion.-r,--reverseβ reverse the sort order.-s,--sort=SORT_FIELDβ which field to sort by.
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. iykyk. π€
-I,--ignore-glob=GLOBSβ glob patterns, pipe-separated, of files to ignore.--git-ignore[if exa was built with git support] β do not list files that are ignored by Git.--group-directories-firstβ list directories before other files.-D,--only-dirsβ list only directories, not files.
π LONG VIEW OPTIONS π
these options are available when running with --long (-l):
-b,--binaryβ list file sizes with binary prefixes.-B,--bytesβ list file sizes in bytes, without any prefixes.--changedβ use the changed timestamp field.-g,--groupβ list each file's group.-h,--headerβ add a header row to each column.-H,--linksβ list each file's number of hard links.-i,--inodeβ list each file's inode number.-m,--modifiedβ use the modified timestamp field.-n,--numericβ list numeric user and group IDs.-S,--blocksβ list each file's number of file system blocks.-t,--time=WORDβ which timestamp field to list. valid timestamp fields aremodified,changed,accessed, andcreated.--time-style=STYLEβ how to format timestamps. valid timestamp styles aredefault,iso,long-iso, andfull-iso.-u,--accessedβ use the accessed timestamp field.-U,--createdβ use the created timestamp field.--no-permissionsβ suppress the permissions field.--no-filesizeβ suppress the file size field.--no-userβ suppress the user field.--no-timeβ suppress the time field.-@,--extendedβ list each file's extended attributes and sizes.--git[if exa was built with git support] β list each file's Git status, if tracked.
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.
π§ ENVIRONMENT VARIABLES π§
exa responds to the following environment variables:
COLUMNS
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. π
EXA_STRICT
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.
EXA_GRID_ROWS
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. π
EXA_ICON_SPACING
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. π
LS_COLORS, EXA_COLORS
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.
π¦ EXIT STATUSES π¦
0β if everything goes OK.1β if there was an I/O error during operation.3β if there was a problem with the command-line arguments.
π AUTHOR π
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
β SEE ALSO β
okay that's the whole thing, you're officially an exa girlie now π«Ά this was v0.9.0 of exa, the exa(1) manual page β go forth and list your directories in the cutest possible way, periodt. πβ¨π
π¦ where this page comes from
- ubuntu jammy: exa 0.10.1-2 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms