Инструменты пользователя

Инструменты сайта



- выводит список файлов в виде дерева

$ man 1 tree
TREE(1)                                                                                                                                           TREE(1)

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

       tree [-adfghilnopqrstuvxACDFNS] [-L level [-R]] [-H baseHREF] [-T title] [-o filename] [--nolinks] [-P pattern] [-I pattern] [--inodes] [--device]
       [--noreport] [--dirsfirst] [--version] [--help] [--filelimit #] [directory ...]

       Tree is a recursive directory listing program that produces a depth indented listing of files, which is colorized ala dircolors if  the  LS_COLORS
       environment variable is set and output is to tty.  With no arguments, tree lists the files in the current directory.  When directory arguments are
       given, tree lists all the files and/or directories found in the given directories each in turn.  Upon completion of listing all  files/directories
       found, tree returns the total number of files and/or directories listed.

Пример вывод дерева каталогов. Ключ -d заставляет показывать только директории и ссылки на директории.

# tree -d /var/
|-- backups
|-- cache
|   |-- apache2
|   |   `-- mod_disk_cache
|   |-- app-install
|   |-- apt
|   |   `-- archives
|   |       `-- partial
|   |-- cups
|   |   |-- ppd
|   |   `-- rss
|   |-- debconf
|   |-- dictionaries-common
|   |-- fontconfig
tree.txt · Последние изменения: 2009/08/19 14:29 (внешнее изменение)