tree文档
usage: tree [-acdfghilnpqrstuvxACDFJQNSUX] [-H baseHREF] [-T title ]
[-L level [-R]] [-P pattern] [-I pattern] [-o filename] [--version]
[--help] [--inodes] [--device] [--noreport] [--nolinks] [--dirsfirst]
[--charset charset] [--filelimit[=]#] [--si] [--timefmt[=]<f>]
[--sort[=]<name>] [--matchdirs] [--ignore-case] [--] [<directory list>]
------- Listing options -------
-a All files are listed.
-d List directories only.
-l Follow symbolic links like directories.
-f Print the full path prefix for each file.
-x Stay on current filesystem only.
-L level Descend only level directories deep.
-R Rerun tree when max dir level reached.
-P pattern List only those files that match the pattern given.
-I pattern Do not list files that match the given pattern.
--ignore-case Ignore case when pattern matching.
--matchdirs Include directory names in -P pattern matching.
--noreport Turn off file/directory count at end of tree listing.
--charset X Use charset X for terminal/HTML and indentation line output.
--filelimit # Do not descend dirs with more than # files in them.
--timefmt <f> Print and format time according to the format <f>.
-o filename Output to file instead of stdout.
-------- File options ---------
-q Print non-printable characters as '?'.
-N Print non-printable characters as is.
-Q Quote filenames with double quotes.
-p Print the protections for each file.
-u Displays file owner or UID number.
-g Displays file group owner or GID number.
-s Print the size in bytes of each file.
-h Print the size in a more human readable way.
--si Like -h, but use in SI units (powers of 1000).
-D Print the date of last modification or (-c) status change.
-F Appends '/', '=', '*', '@', '|' or '>' as per ls -F.
--inodes Print inode number of each file.
--device Print device ID number to which each file belongs.
------- Sorting options -------
-v Sort files alphanumerically by version.
-t Sort files by last modification time.
-c Sort files by last status change time.
-U Leave files unsorted.
-r Reverse the order of the sort.
--dirsfirst List directories before files (-U disables).
--sort X Select sort: name,version,size,mtime,ctime.
------- Graphics options ------
-i Don't print indentation lines.
-A Print ANSI lines graphic indentation lines.
-S Print with CP437 (console) graphics indentation lines.
-n Turn colorization off always (-C overrides).
-C Turn colorization on always.
------- XML/HTML/JSON options -------
-X Prints out an XML representation of the tree.
-J Prints out an JSON representation of the tree.
-H baseHREF Prints out HTML format with baseHREF as top directory.
-T string Replace the default HTML title and H1 header with string.
--nolinks Turn off hyperlinks in HTML output.
---- Miscellaneous options ----
--version Print version and exit.
--help Print usage and this help message and exit.
-- Options processing terminator.
usage: tree [-acdfghilnpqrstuvxACDFJQNSUX] [-H baseHREF] [-T title ]
[-L level [-R]] [-P pattern] [-I pattern] [-o filename] [–version]
[–help] [–inodes] [–device] [–noreport] [–nolinks] [–dirsfirst]
[–charset charset] [–filelimit[=]#] [–si] [–timefmt[=]]
[–sort[=]] [–matchdirs] [–ignore-case] [–] []
------- Listing options -------
-a All files are listed.列出所有文件。
-d List directories only.只列出目录。
-l Follow symbolic links like directories.遵循象目录这样的符号链接。
-f Print the full path prefix for each file.打印每个文件的完整路径前缀。
-x Stay on current filesystem only.只停留在当前文件系统上。
-L level Descend only level directories deep.只向下深入级目录。
-R Rerun tree when max dir level reached.当达到最大目录级别时重新运行树。
-P pattern List only those files that match the pattern given.只列出与给定模式匹配的文件。
-I pattern Do not list files that match the given pattern.不要列出匹配给定模式的文件。
–ignore-case Ignore case when pattern matching.模式匹配时忽略大小写。
–matchdirs Include directory names in -P pattern matching.在-P模式匹配中包含目录名。
–noreport Turn off file/directory count at end of tree listing.树列表结束时关闭文件/目录计数。
–charset X Use charset X for terminal/HTML and indentation line output.使用字符集X作为终端/HTML和缩进行输出。
–filelimit # Do not descend dirs with more than # files in them.下入目录时,文件数量不要超过#。
–timefmt Print and format time according to the format .按格式打印和格式化时间。
-o filename Output to file instead of stdout.输出到文件,而不是标准输出。
-------- File options ---------文件任选;档案选项
-q Print non-printable characters as ‘?’.将不可打印字符打印为’?’。
-N Print non-printable characters as is.按原样打印非打印字符。
-Q Quote filenames with double quotes.用双引号引用文件名。
-p Print the protections for each file.打印每个文件的保护。
-u Displays file owner or UID number.显示文件所有者或UID号。
-v对文件进行字母排序
-g Displays file group owner or GID number. 显示文件组属主或GID号。
-s Print the size in bytes of each file. 以字节为单位打印每个文件的大小。
-h Print the size in a more human readable way. 以更易于阅读的方式打印大小。
–si Like -h, but use in SI units (powers of 1000). 与-h相似,但用在si单位(1000的幂)。
-D Print the date of last modification or (-c) status change.打印最后修改的日期或(-c)状态变化。
-F Appends ‘/’, ‘=’, ‘’, ‘@’, ‘|’ or ‘>’ as per ls -F. 附加 ‘/’, ‘=’, '’, ‘@’, ‘|’ 根据ls - f或“>”。
–inodes Print inode number of each file.打印每个文件的inode号。
–device Print device ID number to which each file belongs.打印每个文件所属的设备ID号。
------- Sorting options --------------排序选项-------
-v Sort files alphanumerically by version.对文件进行字母排序
-t Sort files by last modification time.-t按最后修改时间排序。
-c Sort files by last status change time.按最后一次状态更改时间排序文件。
-U Leave files unsorted.保持文件不排序。
-r Reverse the order of the sort.倒序排序。
–dirsfirst List directories before files (-U disables).列出文件之前的目录(-U禁用)。
–sort X Select sort: name,version,size,mtime,ctime.选择排序:name,version,size,mtime,ctime。
------- Graphics options -------------图形选项------
-i Don’t print indentation lines.不打印缩进行。
-A Print ANSI lines graphic indentation lines.打印ANSI线图形缩进线。
-S Print with CP437 (console) graphics indentation lines.使用CP437(控制台)图形缩进线打印。
-n Turn colorization off always (-C overrides).总是关闭着色(-C覆盖)。
-C Turn colorization on always. 始终打开着色。
------- XML/HTML/JSON options -------------- XML/HTML/JSON选项-------
-X Prints out an XML representation of the tree.输出树的XML表示。
-J Prints out an JSON representation of the tree.输出树的JSON表示
-H baseHREF Prints out HTML format with baseHREF as top directory.baseHREF以baseHREF为顶目录打印HTML格式。
-T string Replace the default HTML title and H1 header with string.使用字符串替换默认的HTML标题和H1标题。
–nolinks Turn off hyperlinks in HTML output.关闭HTML输出中的超链接。
---- Miscellaneous options --------其他选项----
–version Print version and exit.——version打印版本并退出。
–help Print usage and this help message and exit.打印用法和帮助信息并退出。
– Options processing terminator.——选项处理终止符。