Skip to content

lsd

A colourful ls with file-type icons and a built-in tree view.

Homebrew formula Direct download

What it does

lsd lists directories with per-type colours, Nerd Font icons, human-readable sizes, and a --tree mode that replaces most tree invocations. Git status per file is available with --git.

lsd -la
lsd --tree --depth 2
lsd -l --total-size

Notes

The icons need a Nerd Font in the terminal; without one you get replacement boxes. Configuration is ~/.config/lsd/config.yaml, which is where most people set icons, sorting.dir-grouping and a default long format.

Alternative to

AlternativeTypeTrade-off
ezaOpen sourceThe actively maintained fork of exa, and the more common choice today
ls -GBuilt inColours with one flag, no font requirements
colorlsOpen sourceA Ruby implementation of the same idea, slower

Install

brew install lsd

Links

This post is licensed under CC BY 4.0 by the author.
Last updated on