List all files and directories under /usr/local using treeview recursively

duc

  • Duc is a collection of tools for indexing, inspecting and visualizing disk usage. Duc maintains a database of accumulated sizes of directories of the file system, allowing queries this database, or create fancy graphs to show where data is.
    More information: <https://duc.zevv.nl/>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

duc ls --classify --graph --recursive {{/usr/local}}

click the source code to copy install duc on any operating system with command-not-found.com