eza(1)
eza(1) β General Commands Manual π
okay bestie, buckle up, because this is the eza page from the General Commands Manual and it is lowkey a whole personality. β¨
π NAME π
eza β a modern replacement for ls
πΈ SYNOPSIS πΈ
eza [options] [files...]
eza is a modern replacement for ls. It uses colours for information by default, which literally helps you tell apart all the many types of files β like whether you're the owner, or whether you're in the owning group. iykyk π
It also has extra features that the original ls simply does not have, such as viewing the Git status for a directory, or recursing into directories with a tree view. iconic behaviour, no cap π
π¦ EXAMPLES π¦
ezaβ lists the contents of the current directory in a grid. yes, that's it, that's the whole vibe π«Ά
eza --oneline --reverse --sort=size
Displays a list of files with the largest at the top. biggest first, main character energy π
eza --long --header --inode --git
Displays a table of files with a header, showing each file's metadata, inode, and Git status. the full info dump, we love to see it π
eza --long --tree --level=3
Displays a tree of files, three levels deep, as well as each file's metadata. nesting dolls but make it directories πͺ
β META OPTIONS β
--helpβ show the list of command-line options. your little map πΊοΈ-v,--versionβ show the version ofeza. gotta know what you're working with π
π DISPLAY OPTIONS π
-1,--onelineβ display one entry per line. simple, clean, slay β¨--absolute=WHENβ display entries with their absolute path.
Valid settings are on, follow, and off. When used without a value, it defaults to on.
on: show absolute paths for all entries. follow: show absolute paths and resolve symbolic links to their targets. off: show relative paths (this is the default behavior). pick your fighter π₯
-F,--classify=WHENβ display file kind indicators next to file names.
Valid settings are always, automatic (or auto for short), and never. When used without a value, it defaults to automatic.
automatic or auto will display file kind indicators only when the standard output is connected to a real terminal. If eza is ran while in a tty, or the output of eza is either redirected to a file or piped into another program, file kind indicators will not be used. Setting this option to always causes eza to always display file kind indicators, while never disables the use of file kind indicators. π¦
-G,--gridβ display entries as a grid (this is the default). the classic look π-l,--longβ display extended file metadata as a table. all the tea β-R,--recurseβ recurse into directories. go deeper π₯-T,--treeβ recurse into directories as a tree. go deeper but make it aesthetic π³--code[=MODE]β print a lines-of-code summary by language instead of listing files, in the spirit of tools liketokeiandcloc.
The given paths (or the current directory) are walked recursively, honouring a git repository's .gitignore when one is present, and each recognised language is reported with its file, line, code, comment, and blank counts, plus a bar visualising its share of the code.
Valid modes are lines, percent, and both (the default). pick your flavour π
--follow-symlinksβ drill down into symbolic links that point to directories. following the plot π§-X,--dereferenceβ dereference symbolic links when displaying information. show me the real you π-x,--acrossβ sort the grid across, rather than downwards. left to right, not top to bottom π«--color=WHEN,--colour=WHENβ when to use terminal colours (using ANSI escape code to colorize the output).
Valid settings are always, automatic (or auto for short), and never. When used without a value, it defaults to automatic.
The default behavior (automatic or auto) is to colorize the output only when the standard output is connected to a real terminal. If the output of eza is redirected to a file or piped into another program, terminal colors will not be used. Setting this option to always causes eza to always output terminal color, while never disables the use of terminal color.
ngl this one matters: manually setting this option overrides the NO_COLOR environment. so like, you asked for it bestie π
--color-scale,--colour-scaleβ highlight levels of field distinctly. use a comma(,) separated list ofall,age,size. gradients but for your file listing π--color-scale-mode=MODE,--colour-scale-mode=MODEβ use gradient or fixed colors in--color-scale.
Valid options are fixed or gradient. When used without a value, it defaults to gradient.
--icons=WHENβ display icons next to file names.
Valid settings are always, automatic (auto for short), and never. When used without a value, it defaults to automatic.
automatic or auto will display icons only when the standard output is connected to a real terminal. If eza is ran while in a tty, or the output of eza is either redirected to a file or piped into another program, icons will not be used. Setting this option to always causes eza to always display icons, while never disables the use of icons. π
--no-quotesβ don't quote file names with spaces. no quotation marks, no problem β¨--short-nixβ abbreviate Nix store hashes in file names and paths.
A path component beginning with a Nix store hash β exactly 32 characters of Nix's base32 alphabet followed by a dash, like vlkia5wk0svsikwv50554mh06iayg2m2-source.drv β is displayed with the hash shortened to its first 8 characters and an ellipsis, painted dim so the name stands out: vlkia5wk...-source.drv.
This applies to listed names, symbolic link targets, and absolute paths. tiny hash, big mood π
--hyperlink=WHENβ display entries as hyperlinks.
Valid settings are always, automatic (auto for short), and never. When used without a value, it defaults to automatic.
automatic or auto will display hyperlinks only when the standard output is connected to a real terminal. If eza is ran while in a tty, or the output of eza is either redirected to a file or piped into another program, hyperlinks will not be used. Setting this option to always causes eza to always display hyperlinks, while never disables the use of hyperlinks. π
-w,--width=COLSβ set screen width in columns. you're in charge of the vibes now π
π₯ FILTERING AND SORTING OPTIONS π₯
-a,--allβ show hidden and "dot" files. use this twice to also show the.and..directories. the hidden lore π«£-A,--almost-allβ equivalent to--all; included for compatibility withls -A. basically the same fit, different name π-d,--treat-dirs-as-filesβ this flag, inherited fromls, changes howezahandles directory arguments.
Instead of recursing into directories and listing their contents (which is the default behavior), it treats directories as regular files and lists information about the directory entry itself. This is useful when you want to see metadata about the directory (e.g., permissions, size, modification time) rather than its contents.
For simply listing only directories and not files, consider using the --only-dirs (-D) option as an alternative. π
-L,--level=DEPTHβ limit the depth of recursion. know when to stop π-r,--reverseβ reverse the sort order. flip it π-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. aliases galore π
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. case sensitivity is doing the most here π§
-I,--ignore-glob=GLOBSβ glob patterns, pipe-separated, of files to ignore. blocklist them π--git-ignore[ifezawas built with git support] β do not list files that are ignored by Git. respect the.gitignore, periodt β¨--group-directories-firstβ list directories before other files. folders get priority π--group-directories-lastβ list directories after other files. folders get the encore π-D,--only-dirsβ list only directories, not files. folders only, we stan π-f,--only-filesβ list only files, not directories. files only, no folders allowed π--show-symlinksβ explicitly show symbolic links (when used with--only-files|--only-dirs). come back, links π--no-symlinksβ do not show symbolic links. links, you are uninvited π«
okay that's the first chunk bestie, and there's more coming, so don't go anywhere π
π LONG VIEW OPTIONS
okay bestie, these ones only show up when you're running with --long (-l) β like, they're the β¨accessoriesβ¨ to your long-view fit. π
-b,--binaryβ lists file sizes with binary prefixes. cute littleKi,Mivibes π§-B,--bytesβ lists file sizes in bytes, no prefixes at all. just raw numbers, no cap π--changedβ uses the changed timestamp field instead, iykyk-g,--groupβ lists each file's group. group chat energy fr π«Ά--smart-groupβ only shows the group if it's got a different name from the owner. smart, lowkey minimal π-h,--headerβ adds a header row to each column. so organized, main character energy π-H,--linksβ lists each file's number of hard links-i,--inodeβ lists each file's inode number--loc[=MODE]β adds a language column and a lines-of-code column to the long view. Only regular files in a recognised programming language get counted, and the counting is comment-aware, so the code column excludes comment and blank lines β¨. Valid modes arelines(the count of code lines),percent(each file's share of the code in the whole tree), andboth(which is the default). Inpercentandbothmodes, the denominator is the total code across the recursed tree β or the git repository if one is present. obsessed with the accuracy of it all π-m,--modifiedβ uses the modified timestamp field-M,--mountsβ shows mount details (Linux and Mac only)-n,--numericβ lists numeric user and group IDs. no names, just numbers, periodt-O,--flagsβ lists file flags on Mac and BSD systems, and file attributes on Windows systems. By default, Windows attributes are displayed in a long form. To display attributes as a single character, set the environment variableEZA_WINDOWS_ATTRIBUTES=short. On BSD systems, seechflags(1)for a list of file flags and their meanings π¦-S,--blocksizeβ lists each file's size of allocated file system blocks-t,--time=WORDβ which timestamp field to list. Valid timestamp fields aremodified,changed,accessed, andcreated. pick your fighter β--time-style=STYLEβ how to format timestamps. Valid timestamp styles aredefault,iso,long-iso,full-iso,relative, or a custom style+<FORMAT>(e.g.,+%Y-%m-%d %H:%M=>2023-09-30 13:00). π
<FORMAT> should be a chrono format string. For details on the chrono format syntax, please read: https://docs.rs/chrono/latest/chrono/format/strftime/index.html.
Alternatively, <FORMAT> can be a two line string β the first line will be used for non-recent files and the second for recent files. E.g., if <FORMAT> is "%Y-%m-%d %H<newline>--%m-%d %H:%M", then non-recent files => "2022-12-30 13", and recent files => "--09-30 13:34". two moods, one format π
--total-sizeβ shows recursive directory size (unix only)-u,--accessedβ uses the accessed timestamp field-U,--createdβ uses the created timestamp field--no-permissionsβ suppresses the permissions field-o,--octal-permissionsβ lists each file's permissions in octal format--no-filesizeβ suppresses the file size field--no-userβ suppresses the user field--no-timeβ suppresses the time field--stdinβ for when you wish to pipe directories to eza / read from stdin. Separate one per line, or define a custom separation char in theEZA_STDIN_SEPARATORenv variable π§-@,--extendedβ lists each file's extended attributes and sizes-Z,--contextβ lists each file's security context--git[if eza was built with git support] β lists 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,Mfor a modified file,Nfor a new file,Dfor deleted,Rfor renamed,Tfor type-change,Ifor ignored, andUfor conflicted. Directories will be shown to have the status of their contents β which is howdeletedis possible: if a directory contains a file that has a certain status, the directory will be shown to have that status. literally inheriting the whole vibe of its contents π--git-repos[if eza was built with git support] β lists each directory's Git status, if tracked. Symbols shown are|=clean,+=dirty, and~=for unknown π¦--git-repos-no-status[if eza was built with git support] β lists if a directory is a Git repository, but not its status. All Git repository directories will be shown as (themed)-without status indicated--no-gitβ don't show Git status (always overrides--git,--git-repos,--git-repos-no-status). the final boss of git flags π
πΈ ENVIRONMENT VARIABLES πΈ
okay so, if an environment variable prefixed with EZA_ is not set, then for backward compatibility it will default to its counterpart starting with EXA_. cute little legacy moment π
eza responds to the following environment variables:
COLUMNS
Overrides the width of the terminal, in characters β however, -w takes precedence, so -w is lowkey the main character here π
For example, COLUMNS=80 eza will show a grid view with a maximum width of 80 characters.
This option won't do anything when eza's output doesn't wrap, such as when using the --long view. ngl it just sits there vibing for nothing π
EZA_STRICT
Enables strict mode, which will make eza error when two command-line options are incompatible β οΈ
Usually, options can override each other going right-to-left on the command line, so that eza can be given aliases: creating an alias eza=eza --sort=ext and then running eza --sort=size with that alias will run eza --sort=ext --sort=size, and the sorting specified by the user will override the sorting specified by the alias. iconic override behaviour tbh β¨
In strict mode, the two options will not co-operate, and eza will error. no peace, no compromise π
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.
EZA_GRID_ROWS
Limits the grid-details view (eza --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. protecting you from an ugly spread, we love to see it π«Ά
EZA_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 eza 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. bespoke spacing, just for you π¦
NO_COLOR
Disables colours in the output (regardless of its value). Can be overridden by the --color option.
See https://no-color.org/ for details. π¨
LS_COLORS, EZA_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 eza_colors.5.md manual page. β¨
EZA_OVERRIDE_GIT
Overrides any --git or --git-repos argument. it said what it said π
EZA_MIN_LUMINANCE
Specifies the minimum luminance to use when color-scale is active. Its value can be between -100 to 100. π
EZA_ICONS_AUTO
If set, automates the same behavior as using --icons or --icons=auto. Useful for if you always want to have icons enabled. set it and forget it, honestly iconic π
Any explicit use of the --icons=WHEN flag overrides this behavior.
EZA_STDIN_SEPARATOR
Specifies the separator to use when file names are piped from stdin. Defaults to newline. πΈ
EZA_CONFIG_DIR
Specifies the directory where eza will look for its configuration and theme files. Defaults to $XDG_CONFIG_HOME/eza or $HOME/.config/eza if XDG_CONFIG_HOME is not set. your config lives there, bestie π
π EXIT STATUSES π
like, what does the number even mean? here's the tea:
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 π13β if permission is denied to access a path π«
π AUTHOR π
eza is maintained by Christina SΓΈrensen and many other contributors. π«Ά
Source code: https://github.com/eza-community/eza Contributors: https://github.com/eza-community/eza/graphs/contributors
Our infinite thanks to Benjamin `ogham' Sago and all the other contributors of exa, from which eza was forked. the origin story, we love a lore drop π
π₯ SEE ALSO π₯
aaaand that's the whole page bestie!! π this gorgeous little manual comes from the eza source/version, dated as shown at the bottom of the original page β go check eza --version if you want the exact numbers, mwah πβ¨ slay responsibly, and remember: eza_colors(5) is your next read. periodt. π¦
π¦ where this page comes from
- arch rolling: eza 0.23.5-2 Β· EUPL-1.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms