$linuxjunkies
>

eza(1)

A modern replacement for ls that lists directory contents with colors, git integration, and better defaults.

UbuntuDebianFedoraArch

Synopsis

eza [OPTION]... [FILE]...

Description

eza is a modern alternative to the ls command, written in Rust, designed to be faster and more user-friendly. It displays file and directory listings with sensible color defaults, tree views, and built-in git status awareness.

It maintains compatibility with common ls options while adding new features like file type icons, extended attributes display, and git integration for showing file status in repositories.

Common options

FlagWhat it does
-l, --longDisplay in long format with file permissions, owner, size, and modification date
-a, --allShow hidden files (those starting with a dot)
-R, --recurseRecursively list all subdirectories
-T, --treeDisplay directory tree structure
-h, --headerAdd column headers to the output
--gitShow git status for files (modified, staged, etc.)
-1, --onelineDisplay one file per line
-s, --sizeDisplay file sizes in human-readable format
-d, --list-dirsList directories as if they were regular files
-G, --group-dirsGroup directories together before files
--iconsDisplay file type icons alongside filenames

Examples

Simple listing of current directory contents with colors

eza

Long format listing including hidden files

eza -la

Long format with human-readable sizes and git status indicators

eza -lh --git

Tree view of directories up to 3 levels deep

eza -T -L 3

Long listing with file type icons and hidden files

eza --icons -la

Recursive listing respecting .gitignore patterns and showing git status

eza -R --git-ignore

Long format with human-readable sizes sorted by size

eza -lh -s

List directories in /etc without showing their contents

eza -d /etc/*/

Related commands