LinuxCommandLibrary

exa

List directory contents with improved formatting

TLDR

List files one per line

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

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

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

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

Display a tree of files, three levels deep
$ exa [[-l|--long]] [[-T|--tree]] [[-L|--level]] [3]
copy

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

List files with their headers, icons, and Git statuses
$ exa [[-l|--long]] [[-h|--header]] --icons --git
copy

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

SYNOPSIS

exa [OPTIONS] [FILE]...

PARAMETERS

-1, --one-line
    Display one entry per line

--binary
    Use binary prefixes (KiB, MiB)

--color
    Control when to use color: always, never, auto

--color-scale
    Color files by size

-F, --classify
    Append file type indicators (* => executable, / => dir)

--git
    Show git status in header

--git-ignore
    Hide git-ignored files

--group-directories-first
    List directories before files

--header
    Print header row in long view

--hyperlink
    Print hyperlinks to files

--icons
    Use file icons (requires nerdfonts)

--inode
    Show inode numbers

-l, --long
    Long listing format with details

-h, --human
    Human-readable file sizes

--no-user
    Omit user column

--octal
    Octal permissions instead of symbolic

--sort
    Sort by name, size, time, extension, etc.

--time
    Show modified, accessed, or changed time

--time-style