Definition:

  • list contents of directories in a tree-like format.

Synopsis:

  • tree [-acdfghilnpqrstuvxACDFJQNSUX] [-L level [-R]] [-H baseHREF] [-T title] [-o filename] [-P pattern] [-I pattern] [--gitignore] [--matchdirs] [--metafirst] [--ignore-case] [--nolinks] [--inodes] [--device] [--sort[=]name] [--dirsfirst] [--filesfirst] [--filelimit #] [--si] [--du] [--prune] [--timefmt[=]format] [--fromfile] [--info] [--noreport] [--version] [--help] [--] [directory ...]

List of options:

  • -a: include all files, hidden files
  • .
  • -d: display dir only
  • -s: Print the size of each file in bytes along with the name.
  • -D: Print the date of the last modification time
  • -L level: Max display depth of the directory tree.