Alternatives to tree

A command-line program that lists the contents of directories as an indented tree. The listings below can replace it for an important use case. Each note says what changes if you switch.

The original

Replacements

Listings that take over the same core job as tree.

  • eza

    A replacement for ls with colours, icons, a tree view and Git status in the listing.

    eza provides a tree view with -T along with colours, icons and Git status, ships as one binary for Windows, macOS and Linux, but lacks tree's HTML output.

  • erdtree

    A multi-threaded command-line tool that shows a directory tree together with disk usage.

    erdtree shows the directory tree together with disk usage, honours .gitignore rules and runs multi-threaded on Windows, macOS and Linux, with infrequent releases.

  • LSD

    List files with icons, colors and tree views.

    LSD offers tree views with icons and colours on Windows, macOS and Linux under Apache-2.0, though icon display needs a suitable terminal font.

Similar software

Related functionality, not a direct replacement.