LinuxCommandLibrary

lstr

Fast minimalist directory tree viewer

TLDR

Display directory tree
$ lstr
copy
Display tree for a specific path
$ lstr [path/to/directory]
copy
Launch interactive TUI mode
$ lstr interactive
copy
Show tree with Git status
$ lstr --git
copy
Sort by size
$ lstr --sort size
copy

SYNOPSIS

lstr [options] [path]

DESCRIPTION

lstr is a fast, minimalist directory tree viewer that brings modern features to the classic tree command. It respects .gitignore and other standard ignore files, shows Git status for files and directories, and supports file-specific icons with Nerd Fonts.
The interactive TUI mode allows browsing and navigating the directory tree. Output can be piped to other tools like fzf for filtering.

PARAMETERS

--git

Show Git status for files and directories.
--sort CRITERIA
Sort entries by name, size, modified date, or extension.
--hyperlinks
Enable clickable file links in supported terminals.
-L, --level DEPTH
Limit the depth of the tree display.

CAVEATS

Icon display requires a Nerd Font installed in the terminal.

HISTORY

lstr was created by bgreenwell and is written in Rust.

SEE ALSO

tree(1), ls(1), eza(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard