documentación del comando de árbol

1. documentos chinos

用法:树 [-acdfghilnpqrstuvxACDFJQNSUX] [-L 级别 [-R]] [-H baseHREF]
        [-T 标题] [-o 文件名] [-P 模式] [-I 模式] [--gitignore]
        [--gitfile[=]文件] [--matchdirs] [--metafirst] [--忽略大小写]
        [--nolinks] [--hintro[=]file] [--houtro[=]file] [--inodes] [--device]
        [--sort[=]<名称>] [--dirsfirst] [--filesfirst] [--filelimit #] [--si]
        [--du] [--prune] [--charset[=]X] [--timefmt[=]format] [--fromfile]
        [--fflinks] [--info] [--infofile[=]file] [--noreport] [--version]
        [--帮助] [--] [目录...]
  ------ 上市选项 ------
  -a 列出所有文件。
  -d 仅列出目录。
  -l 遵循目录等符号链接。
  -f 打印每个文件的完整路径前缀。
  -x 仅停留在当前文件系统上。
  -L level 仅下降级别目录深度。
  -R 达到最大目录级别时重新运行树。
  -P pattern 只列出那些匹配给定模式的文件。
  -I pattern 不要列出匹配给定模式的文件。
  --gitignore 使用 .gitignore 文件过滤。
  --gitfile X 显式读取 gitignore 文件。
  --ignore-case 模式匹配时忽略大小写。
  --matchdirs 在 -P 模式匹配中包括目录名称。
  --metafirst 在每行的开头打印元数据。
  --prune 从输出中删除空目录。
  --info 打印有关在 .info 文件中找到的文件的信息。
  --infofile X 显式读取信息文件。
  --noreport 关闭树列表末尾的文件/目录计数。
  --charset X 将字符集 X 用于终端/HTML 和缩进行输出。
  --filelimit # 不要下降包含超过 # 个文件的目录。
  -o 文件名 输出到文件而不是标准输出。
  ------ 文件选项 ------
  -q 将不可打印的字符打印为“?”。
  -N 按原样打印不可打印的字符。
  -Q 用双引号引用文件名。
  -p 打印每个文件的保护。
  -u 显示文件所有者或 UID 号。
  -g 显示文件组所有者或 GID 号。
  -s 打印每个文件的字节大小。
  -h 以更易读的方式打印大小。
  --si 与 -h 类似,但使用 SI 单位(1000 的幂)。
  --du 根据内容计算目录的大小。
  -D 打印上次修改或 (-c) 状态更改的日期。
  --timefmt <f> 根据格式<f> 打印和格式化时间。
  -F 追加 '/'、'='、'*'、'@'、'|' 或根据 ls -F 的“>”。
  --inodes 打印每个文件的索引节点号。
  --device 打印每个文件所属的设备ID号。
  ------ 排序选项 ------
  -v 按版本按字母数字顺序对文件排序。
  -t 按最后修改时间排序文件。
  -c 按上次状态更改时间对文件排序。
  -U 不对文件进行排序。
  -r 反转排序的顺序。
  --dirsfirst 在文件之前列出目录(-U 禁用)。
  --filesfirst 在目录之前列出文件(-U 禁用)。
  --sort X 选择排序:名称、版本、大小、mtime、ctime。
  ------ 图形选项 ------
  -i 不打印缩进线。
  -A 打印 ANSI 线图形缩进线。
  -S 使用 CP437(控制台)图形缩进线打印。
  -n 始终关闭着色(-C 覆盖)。
  -C 始终打开着色。
  ------ XML/HTML/JSON 选项 ------
  -X 打印出树的 XML 表示。
  -J 打印出树的 JSON 表示。
  -H baseHREF 以 baseHREF 作为顶级目录打印出 HTML 格式。
  -T 字符串 用字符串替换默认的 HTML 标题和 H1 标题。
  --nolinks 关闭 HTML 输出中的超链接。
  --hintro X 使用文件 X 作为 HTML 介绍。
  --houtro X 使用文件 X 作为 HTML 结尾。
  ------ 输入选项 ------
  --fromfile 从文件中读取路径 (.=stdin)
  --fflinks 使用--fromfile 时处理链接信息。
  ------ 杂项选项 ------
  --version 打印版本并退出。
  --help 打印用法和此帮助消息并退出。
  -- 选项处理终止符。

2. Documentos fuente

usage: tree [-acdfghilnpqrstuvxACDFJQNSUX] [-L level [-R]] [-H  baseHREF]
        [-T title] [-o filename] [-P pattern] [-I pattern] [--gitignore]
        [--gitfile[=]file] [--matchdirs] [--metafirst] [--ignore-case]
        [--nolinks] [--hintro[=]file] [--houtro[=]file] [--inodes] [--device]
        [--sort[=]<name>] [--dirsfirst] [--filesfirst] [--filelimit #] [--si]
        [--du] [--prune] [--charset[=]X] [--timefmt[=]format] [--fromfile]
        [--fflinks] [--info] [--infofile[=]file] [--noreport] [--version]
        [--help] [--] [directory ...]
  ------- 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.
  --gitignore   Filter by using .gitignore files.
  --gitfile X   Explicitly read gitignore file.
  --ignore-case Ignore case when pattern matching.
  --matchdirs   Include directory names in -P pattern matching.
  --metafirst   Print meta-data at the beginning of each line.
  --prune       Prune empty directories from the output.
  --info        Print information about files found in .info files.
  --infofile X  Explicitly read info file.
  --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.
  -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).
  --du          Compute size of directories by their contents.
  -D            Print the date of last modification or (-c) status change.
  --timefmt <f> Print and format time according to the format <f>.
  -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).
  --filesfirst  List files before directories (-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.
  --hintro X    Use file X as the HTML intro.
  --houtro X    Use file X as the HTML outro.
  ------- Input options -------
  --fromfile    Reads paths from files (.=stdin)
  --fflinks     Process link informtion when using --fromfile.
  ------- Miscellaneous options -------
  --version     Print version and exit.
  --help        Print usage and this help message and exit.
  --            Options processing terminator.

Supongo que te gusta

Origin blog.csdn.net/zhoqua697/article/details/130863687
Recomendado
Clasificación