.\" Automatically generated by Pandoc 3.1.9 .\" .TH "eza" "1" "" "$version" "" .SH NAME eza \[em] a modern replacement for ls .SH SYNOPSIS \f[CR]eza [options] [files...]\f[R] .PP \f[B]eza\f[R] is a modern replacement for \f[CR]ls\f[R]. 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. .PP It also has extra features not present in the original \f[CR]ls\f[R], such as viewing the Git status for a directory, or recursing into directories with a tree view. .SH EXAMPLES .TP \f[CR]eza\f[R] Lists the contents of the current directory in a grid. .TP \f[CR]eza --oneline --reverse --sort=size\f[R] Displays a list of files with the largest at the top. .TP \f[CR]eza --long --header --inode --git\f[R] Displays a table of files with a header, showing each file\[cq]s metadata, inode, and Git status. .TP \f[CR]eza --long --tree --level=3\f[R] Displays a tree of files, three levels deep, as well as each file\[cq]s metadata. .SH META OPTIONS .TP \f[CR]--help\f[R] Show list of command-line options. .TP \f[CR]-v\f[R], \f[CR]--version\f[R] Show version of eza. .SH DISPLAY OPTIONS .TP \f[CR]-1\f[R], \f[CR]--oneline\f[R] Display one entry per line. .TP \f[CR]-F\f[R], \f[CR]--classify=WHEN\f[R] Display file kind indicators next to file names. .PP Valid settings are `\f[CR]always\f[R]', `\f[CR]automatic\f[R]' (or `\f[CR]auto\f[R]' for short), and `\f[CR]never\f[R]'. The default value is `\f[CR]automatic\f[R]'. .PP The default behavior (\f[CR]automatic\f[R] or \f[CR]auto\f[R]) will display file kind indicators only when the standard output is connected to a real terminal. If \f[CR]eza\f[R] is ran while in a \f[CR]tty\f[R], or the output of \f[CR]eza\f[R] is either redirected to a file or piped into another program, file kind indicators will not be used. Setting this option to `\f[CR]always\f[R]' causes \f[CR]eza\f[R] to always display file kind indicators, while `\f[CR]never\f[R]' disables the use of file kind indicators. .TP \f[CR]-G\f[R], \f[CR]--grid\f[R] Display entries as a grid (default). .TP \f[CR]-l\f[R], \f[CR]--long\f[R] Display extended file metadata as a table. .TP \f[CR]-R\f[R], \f[CR]--recurse\f[R] Recurse into directories. .TP \f[CR]-T\f[R], \f[CR]--tree\f[R] Recurse into directories as a tree. .TP \f[CR]-X\f[R], \f[CR]--dereference\f[R] Dereference symbolic links when displaying information. .TP \f[CR]-x\f[R], \f[CR]--across\f[R] Sort the grid across, rather than downwards. .TP \f[CR]--color=WHEN\f[R], \f[CR]--colour=WHEN\f[R] When to use terminal colours (using ANSI escape code to colorize the output). .PP Valid settings are `\f[CR]always\f[R]', `\f[CR]automatic\f[R]' (or `\f[CR]auto\f[R]' for short), and `\f[CR]never\f[R]'. The default value is `\f[CR]automatic\f[R]'. .PP The default behavior (`\f[CR]automatic\f[R]' or `\f[CR]auto\f[R]') is to colorize the output only when the standard output is connected to a real terminal. If the output of \f[CR]eza\f[R] is redirected to a file or piped into another program, terminal colors will not be used. Setting this option to `\f[CR]always\f[R]' causes \f[CR]eza\f[R] to always output terminal color, while `\f[CR]never\f[R]' disables the use of terminal color. .PP Manually setting this option overrides \f[CR]NO_COLOR\f[R] environment. .TP \f[CR]--color-scale\f[R], \f[CR]--colour-scale\f[R] highlight levels of \f[CR]field\f[R] distinctly. Use comma(,) separated list of all, age, size .TP \f[CR]--color-scale-mode\f[R], \f[CR]--colour-scale-mode\f[R] Use gradient or fixed colors in \f[CR]--color-scale\f[R]. .PP Valid options are \f[CR]fixed\f[R] or \f[CR]gradient\f[R]. The default value is \f[CR]gradient\f[R]. .TP \f[CR]--icons=WHEN\f[R] Display icons next to file names. .PP Valid settings are `\f[CR]always\f[R]', `\f[CR]automatic\f[R]' (`\f[CR]auto\f[R]' for short), and `\f[CR]never\f[R]'. The default value is `\f[CR]automatic\f[R]'. .PP \f[CR]automatic\f[R] or \f[CR]auto\f[R] will display icons only when the standard output is connected to a real terminal. If \f[CR]eza\f[R] is ran while in a \f[CR]tty\f[R], or the output of \f[CR]eza\f[R] is either redirected to a file or piped into another program, icons will not be used. Setting this option to `\f[CR]always\f[R]' causes \f[CR]eza\f[R] to always display icons, while `\f[CR]never\f[R]' disables the use of icons. .TP \f[CR]--no-quotes\f[R] Don\[cq]t quote file names with spaces. .TP \f[CR]--hyperlink\f[R] Display entries as hyperlinks .TP \f[CR]-w\f[R], \f[CR]--width=COLS\f[R] Set screen width in columns. .PP Valid options are \f[CR]none\f[R], \f[CR]absolute\f[R] or \f[CR]relative\f[R]. The default value is \f[CR]none\f[R] .PP \f[CR]absolute\f[R] mode highlights based on file modification time relative to the past year. \f[CR]relative\f[R] mode highlights based on file modification time in relation to other files. \f[CR]none\f[R] disables highlighting. .SH FILTERING AND SORTING OPTIONS .TP \f[CR]-a\f[R], \f[CR]--all\f[R] Show hidden and \[lq]dot\[rq] files. Use this twice to also show the `\f[CR].\f[R]' and `\f[CR]..\f[R]' directories. .TP \f[CR]-A\f[R], \f[CR]--almost-all\f[R] Equivalent to \[en]all; included for compatibility with \f[CR]ls -A\f[R]. .TP \f[CR]-d\f[R], \f[CR]--list-dirs\f[R] List directories as regular files, rather than recursing and listing their contents. .TP \f[CR]-L\f[R], \f[CR]--level=DEPTH\f[R] Limit the depth of recursion. .TP \f[CR]-r\f[R], \f[CR]--reverse\f[R] Reverse the sort order. .TP \f[CR]-s\f[R], \f[CR]--sort=SORT_FIELD\f[R] Which field to sort by. .PP Valid sort fields are `\f[CR]name\f[R]', `\f[CR]Name\f[R]', `\f[CR]extension\f[R]', `\f[CR]Extension\f[R]', `\f[CR]size\f[R]', `\f[CR]modified\f[R]', `\f[CR]changed\f[R]', `\f[CR]accessed\f[R]', `\f[CR]created\f[R]', `\f[CR]inode\f[R]', `\f[CR]type\f[R]', and `\f[CR]none\f[R]'. .PP The \f[CR]modified\f[R] sort field has the aliases `\f[CR]date\f[R]', `\f[CR]time\f[R]', and `\f[CR]newest\f[R]', and its reverse order has the aliases `\f[CR]age\f[R]' and `\f[CR]oldest\f[R]'. .PP 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'. .TP \f[CR]-I\f[R], \f[CR]--ignore-glob=GLOBS\f[R] Glob patterns, pipe-separated, of files to ignore. .TP \f[CR]--git-ignore\f[R] [if eza was built with git support] Do not list files that are ignored by Git. .TP \f[CR]--group-directories-first\f[R] List directories before other files. .TP \f[CR]-D\f[R], \f[CR]--only-dirs\f[R] List only directories, not files. .TP \f[CR]-f\f[R], \f[CR]--only-files\f[R] List only files, not directories. .SH LONG VIEW OPTIONS These options are available when running with \f[CR]--long\f[R] (\f[CR]-l\f[R]): .TP \f[CR]-b\f[R], \f[CR]--binary\f[R] List file sizes with binary prefixes. .TP \f[CR]-B\f[R], \f[CR]--bytes\f[R] List file sizes in bytes, without any prefixes. .TP \f[CR]--changed\f[R] Use the changed timestamp field. .TP \f[CR]-g\f[R], \f[CR]--group\f[R] List each file\[cq]s group. .TP \f[CR]--smart-group\f[R] Only show group if it has a different name from owner .TP \f[CR]-h\f[R], \f[CR]--header\f[R] Add a header row to each column. .TP \f[CR]-H\f[R], \f[CR]--links\f[R] List each file\[cq]s number of hard links. .TP \f[CR]-i\f[R], \f[CR]--inode\f[R] List each file\[cq]s inode number. .TP \f[CR]-m\f[R], \f[CR]--modified\f[R] Use the modified timestamp field. .TP \f[CR]-M\f[R], \f[CR]--mounts\f[R] Show mount details (Linux and Mac only) .TP \f[CR]-n\f[R], \f[CR]--numeric\f[R] List numeric user and group IDs. .TP \f[CR]-O\f[R], \f[CR]--flags\f[R] List 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 in attributes as single character set the environment variable \f[CR]EZA_WINDOWS_ATTRIBUTES=short\f[R]. On BSD systems see chflags(1) for a list of file flags and their meanings. .TP \f[CR]-S\f[R], \f[CR]--blocksize\f[R] List each file\[cq]s size of allocated file system blocks. .TP \f[CR]-t\f[R], \f[CR]--time=WORD\f[R] Which timestamp field to list. Valid timestamp fields are `\f[CR]modified\f[R]', `\f[CR]changed\f[R]', `\f[CR]accessed\f[R]', and `\f[CR]created\f[R]'. .TP \f[CR]--time-style=STYLE\f[R] How to format timestamps. Valid timestamp styles are `\f[CR]default\f[R]', `\f[CR]iso\f[R]', `\f[CR]long-iso\f[R]', `\f[CR]full-iso\f[R]', `\f[CR]relative\f[R]', or a custom style `\f[CR]+\f[R]' (e.g., `\f[CR]+%Y-%m-%d %H:%M\f[R]' => `\f[CR]2023-09-30 13:00\f[R]'). .PP \f[CR]\f[R] 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 . .PP Alternatively, \f[CR]\f[R] 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 \f[CR]\f[R] is \[lq]\f[CR]%Y-%m-%d %H--%m-%d %H:%M\f[R]\[rq], non-recent files => \[lq]\f[CR]2022-12-30 13\f[R]\[rq], recent files => \[lq]\f[CR]--09-30 13:34\f[R]\[rq]. .TP \f[CR]--total-size\f[R] Show recursive directory size (unix only). .TP \f[CR]-u\f[R], \f[CR]--accessed\f[R] Use the accessed timestamp field. .TP \f[CR]-U\f[R], \f[CR]--created\f[R] Use the created timestamp field. .TP \f[CR]--no-permissions\f[R] Suppress the permissions field. .TP \f[CR]-o\f[R], \f[CR]--octal-permissions\f[R] List each file\[cq]s permissions in octal format. .TP \f[CR]--no-filesize\f[R] Suppress the file size field. .TP \f[CR]--no-user\f[R] Suppress the user field. .TP \f[CR]--no-time\f[R] Suppress the time field. .TP \f[CR]--stdin\f[R] When you wish to pipe directories to eza/read from stdin. Separate one per line or define custom separation char in \f[CR]EZA_STDIN_SEPARATOR\f[R] env variable. .TP \f[CR]-\[at]\f[R], \f[CR]--extended\f[R] List each file\[cq]s extended attributes and sizes. .TP \f[CR]-Z\f[R], \f[CR]--context\f[R] List each file\[cq]s security context. .TP \f[CR]--git\f[R] [if eza was built with git support] List each file\[cq]s Git status, if tracked. This adds a two-character column indicating the staged and unstaged statuses respectively. The status character can be `\f[CR]-\f[R]' for not modified, `\f[CR]M\f[R]' for a modified file, `\f[CR]N\f[R]' for a new file, `\f[CR]D\f[R]' for deleted, `\f[CR]R\f[R]' for renamed, `\f[CR]T\f[R]' for type-change, `\f[CR]I\f[R]' for ignored, and `\f[CR]U\f[R]' 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. .TP \f[CR]--git-repos\f[R] [if eza was built with git support] List each directory\[cq]s Git status, if tracked. Symbols shown are \f[CR]|\f[R]= clean, \f[CR]+\f[R]= dirty, and \f[CR]\[ti]\f[R]= for unknown. .TP \f[CR]--git-repos-no-status\f[R] [if eza was built with git support] List if a directory is a Git repository, but not its status. All Git repository directories will be shown as (themed) \f[CR]-\f[R] without status indicated. .TP \f[CR]--no-git\f[R] Don\[cq]t show Git status (always overrides \f[CR]--git\f[R], \f[CR]--git-repos\f[R], \f[CR]--git-repos-no-status\f[R]) .SH ENVIRONMENT VARIABLES If an environment variable prefixed with \f[CR]EZA_\f[R] is not set, for backward compatibility, it will default to its counterpart starting with \f[CR]EXA_\f[R]. .PP eza responds to the following environment variables: .SS \f[CR]COLUMNS\f[R] Overrides the width of the terminal, in characters, however, \f[CR]-w\f[R] takes precedence. .PP For example, `\f[CR]COLUMNS=80 eza\f[R]' will show a grid view with a maximum width of 80 characters. .PP This option won\[cq]t do anything when eza\[cq]s output doesn\[cq]t wrap, such as when using the \f[CR]--long\f[R] view. .SS \f[CR]EZA_STRICT\f[R] Enables \f[I]strict mode\f[R], which will make eza error when two command-line options are incompatible. .PP Usually, options can override each other going right-to-left on the command line, so that eza can be given aliases: creating an alias `\f[CR]eza=eza --sort=ext\f[R]' then running `\f[CR]eza --sort=size\f[R]' with that alias will run `\f[CR]eza --sort=ext --sort=size\f[R]', and the sorting specified by the user will override the sorting specified by the alias. .PP In strict mode, the two options will not co-operate, and eza will error. .PP This option is intended for use with automated scripts and other situations where you want to be certain you\[cq]re typing in the right command. .SS \f[CR]EZA_GRID_ROWS\f[R] Limits the grid-details view (`\f[CR]eza --grid --long\f[R]') so it\[cq]s only activated when at least the given number of rows of output would be generated. .PP With widescreen displays, it\[cq]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\[cq]s going to be worth using. .SS \f[CR]EZA_ICON_SPACING\f[R] Specifies the number of spaces to print between an icon (see the `\f[CR]--icons\f[R]' option) and its file name. .PP Different terminals display icons differently, as they usually take up more than one character width on screen, so there\[cq]s no \[lq]standard\[rq] 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. .SS \f[CR]NO_COLOR\f[R] Disables colours in the output (regardless of its value). Can be overridden by \f[CR]--color\f[R] option. .PP See \f[CR]https://no-color.org/\f[R] for details. .SS \f[CR]LS_COLORS\f[R], \f[CR]EZA_COLORS\f[R] Specifies the colour scheme used to highlight files based on their name and kind, as well as highlighting metadata and parts of the UI. .PP For more information on the format of these environment variables, see the eza_colors.5.md manual page. .SS \f[CR]EZA_OVERRIDE_GIT\f[R] Overrides any \f[CR]--git\f[R] or \f[CR]--git-repos\f[R] argument .SS \f[CR]EZA_MIN_LUMINANCE\f[R] Specifies the minimum luminance to use when decay is active. It\[cq]s value can be between -100 to 100. .SS \f[CR]EZA_ICONS_AUTO\f[R] If set, automates the same behavior as using \f[CR]--icons\f[R] or \f[CR]--icons=auto\f[R]. Useful for if you always want to have icons enabled. .PP Any explicit use of the \f[CR]--icons=WHEN\f[R] flag overrides this behavior. .SS \f[CR]EZA_STDIN_SEPARATOR\f[R] Specifies the separator to use when file names are piped from stdin. Defaults to newline. .SH EXIT STATUSES .TP 0 If everything goes OK. .TP 1 If there was an I/O error during operation. .TP 3 If there was a problem with the command-line arguments. .SH AUTHOR eza is maintained by Christina Sørensen and many other contributors. .PP \f[B]Source code:\f[R] \f[CR]https://github.com/eza-community/eza\f[R] .PD 0 .P .PD \f[B]Contributors:\f[R] \f[CR]https://github.com/eza-community/eza/graphs/contributors\f[R] .PP Our infinite thanks to Benjamin `ogham' Sago and all the other contributors of exa, from which eza was forked. .SH SEE ALSO .IP \[bu] 2 eza_colors.5.md .IP \[bu] 2 eza_colors-explanation.5.md