Forrest logo
back to context overview

tree

List of commands for tree:

  • tree:tldr:077fa tree: Print hidden files too with colorization on.
    $ tree -a -C
    try on your machine
    explain this command
  • tree:tldr:23a82 tree: Print files and directories up to 'num' levels of depth (where 1 means the current directory).
    $ tree -L ${num}
    try on your machine
    explain this command
  • tree:tldr:46ed9 tree: Print directories only.
    $ tree -d
    try on your machine
    explain this command
  • tree:tldr:51385 tree: Display the tree using ASCII characters instead of extended characters.
    $ tree ${path\to\directory} /a
    try on your machine
    explain this command
  • tree:tldr:65245 tree: Print the size of each file and the cumulative size of each directory, in human-readable format.
    $ tree -s -h --du
    try on your machine
    explain this command
  • tree:tldr:75a19 tree: Display the tree for a specific directory.
    $ tree ${path\to\directory}
    try on your machine
    explain this command
  • tree:tldr:97d69 tree: Print the tree without indentation lines, showing the full path instead (use `-N` to not escape non-printable characters).
    $ tree -i -f
    try on your machine
    explain this command
  • tree:tldr:b776d tree: Print files within the tree hierarchy, using a wildcard (glob) pattern, and pruning out directories that don't contain matching files.
    $ tree -P '${*-txt}' --prune
    try on your machine
    explain this command
  • tree:tldr:c0af7 tree: Display the tree for the current directory.
    $ tree
    try on your machine
    explain this command
  • tree:tldr:d6b2a tree: Print directories within the tree hierarchy, using the wildcard (glob) pattern, and pruning out directories that aren't ancestors of the wanted one.
    $ tree -P ${directory_name} --matchdirs --prune
    try on your machine
    explain this command
  • tree:tldr:e076b tree: Display the tree for a directory including files.
    $ tree ${path\to\directory} /f
    try on your machine
    explain this command
back to context overview