LinuxCommandLibrary

eza

List directory contents with improved formatting

TLDR

List files one per line

$ eza [[-1|--oneline]]
copy

List all files, including hidden files
$ eza [[-a|--all]]
copy

Long format list (permissions, ownership, size, and modification date) of all files
$ eza [[-al|--all --long]]
copy

List files with the largest at the top
$ eza [[-r|--reverse]] [[-s|--sort]] [size]
copy

Display a tree of files, three levels deep
$ eza [[-lT|--long --tree]] [[-L|--level]] [3]
copy

List files sorted by modification date (oldest first)
$ eza [[-l|--long]] [[-s|--sort]] [modified]
copy

List files with their headers, icons, and Git statuses
$ eza [[-lh|--long --header]] --icons --git
copy

Don't list files mentioned in .gitignore
$ eza --git-ignore
copy

SYNOPSIS

eza [OPTIONS] [FILES...]

PARAMETERS

-a, --all
    Show hidden and dotfiles

-A, --almost-all
    Show hidden files except . and ..

-l, --long
    Long listing with metadata (permissions, size, etc.)

--color
    Colorize output: always, never, or auto

--icons
    Display file type icons (requires nerdfont)

--git
    Show git status (dirty/clean) for files

--git-repos
    Show git status for repositories

--tree
    Display directory tree

-d, --list-dirs
    List directories like regular files

-r, --recursive
    Recurse into directories

-R, --reverse
    Reverse default sort order

-s, --sort
    Sort by: name, size, type, modified, accessed, created, ext

--group-directories-first
    Directories before files

--header
    Print header row in long view

--only-dirs
    List directories only

--grid
    Grid view layout

-h, --help
    Print help information

-V, --version
    Print version

DESCRIPTION

Eza is a blazingly fast, feature-rich alternative to the traditional Unix ls command, rewritten in Rust for improved performance, safety, and extensibility. It provides vivid colors for file types and metadata, git status integration, file icons (with nerdfont support), and tree-like directory views. Eza emphasizes usability with options like grouping directories first, customizable sorting, and detailed long listings including permissions, owners, sizes, and modification times.

Key advantages over ls include native support for wide columns, dark/light theme detection, and no forking (single-threaded by default for speed). It's actively maintained by the eza-community as a direct successor to the archived exa project. Ideal for terminal enthusiasts seeking a polished file lister without sacrificing compatibility.

CAVEATS

Requires installation (not default); icons need nerdfont-patched terminal; git features add slight overhead.

ALIASES

Common: alias ls='eza', alias ll='eza -l', alias la='eza -a' for seamless ls replacement.
Persist in ~/.bashrc or ~/.zshrc.

INSTALLATION

Cargo: cargo install eza.
Arch: pacman -S eza.
Debian/Ubuntu: via PPA or nix.
See eza.rocks for distros.

HISTORY

Forked from exa (by ogham, archived 2021) by eza-community in 2022. Focuses on maintenance, Rust updates, and new features like extended attributes and better Windows support.

SEE ALSO

ls(1), exa(1), lsd(1)

Copied to clipboard