HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

exa — A modern replacement for `ls` (List directory contents). More information: <https://github.com/ogham

Submitted by: @import:tldr-pages··
0
Viewed 0 times
directorycommandmoderncliexareplacementforlist

Problem

How to use the exa command: A modern replacement for ls (List directory contents). More information: <https://github.com/ogham/exa#command-line-options>.

Solution

exa — A modern replacement for ls (List directory contents). More information: <https://github.com/ogham/exa#command-line-options>.

List files one per line:
exa {{[-1|--oneline]}}


List all files, including hidden files:
exa {{[-a|--all]}}


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


List files with the largest at the top:
exa {{[-r|--reverse]}} {{[-s|--sort]}} {{size}}


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


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


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


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

Code Snippets

List files one per line

exa {{[-1|--oneline]}}

List all files, including hidden files

exa {{[-a|--all]}}

Long format list (permissions, ownership, size, and modification date) of all files

exa {{[-l|--long]}} {{[-a|--all]}}

List files with the largest at the top

exa {{[-r|--reverse]}} {{[-s|--sort]}} {{size}}

Display a tree of files, three levels deep

exa {{[-l|--long]}} {{[-T|--tree]}} {{[-L|--level]}} {{3}}

Context

tldr-pages: common/exa

Revisions (0)

No revisions yet.