eza Command Examples
Modern, maintained replacement for
ls
, built onexa
. More information: https://github.com/eza-community/eza.
- List files one per line:
eza {{[-1|--oneline]}}
- List all files, including hidden files:
eza {{[-a|--all]}}
- Long format list (permissions, ownership, size and modification date) of all files:
eza {{[-al|--all --long]}}
- List files with the largest at the top:
eza {{[-r|--reverse]}} {{[-s|--sort]}} {{size}}
- Display a tree of files, three levels deep:
eza {{[-lT|--long --tree]}} {{[-L|--level]}} {{3}}
- List files sorted by modification date (oldest first):
eza {{[-l|--long]}} {{[-s|--sort]}} {{modified}}
- List files with their headers, icons, and Git statuses:
eza {{[-lh|--long --header]}} --icons --git
- Don't list files mentioned in
.gitignore
:
eza --git-ignore