[root@DB104 ~]# tree --help
usage: tree [-adfghilnpqrstuvxACDFNS] [-H baseHREF] [-T title ] [-L level [-R]] [-P pattern] [-I pattern] [-o filename] [--version] [--help] [--inodes] [--device] [--noreport] [--nolinks] [--dirsfirst] [--charset charset] [--filelimit #] [<directory list>]用法:tree [参数] [目录]
-d List directories only.——只显示目录;
-l Follow symbolic links like directories.
-f Print the full path prefix for each file.——所有文件输出全路径;
-i Don't print indentation lines.——直接输出,不以层次显示;
-q Print non-printable characters as '?'.
-N Print non-printable characters as is.
-p Print the protections for each file.——输出文件的(10位权限)属性;
-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.——以可读模式,输出文件大小;
-D Print the date of last modification.——输出文件最后修改日期;
-F Appends '/', '=', '*', or '|' as per ls -F.——参考ls -F,通过不同的符号标识不同类型文件;
-v Sort files alphanumerically by version.
-r Sort files in reverse alphanumeric order.
-t Sort files by last modification time.——通过最后修改时间排序;
-x Stay on current filesystem only.
-L level Descend only level directories deep.——表示罗列目录深度;
-A Print ANSI lines graphic indentation lines.——输出层次以ANSI格式的图形收缩线;
-S Print with ASCII graphics indentation lines.——类似-A,以ASCⅡ格式显示文件层次;
-n Turn colorization off always (-C overrides).——对应-C,关闭颜色显示;
-C Turn colorization on always.——对应-n,显示颜色,用不同颜色显示不同类型文件;
-P pattern List only those files that match the pattern given.
-I pattern Do not list files that match the given pattern.
-H baseHREF Prints out HTML format with baseHREF as top directory.
-T string Replace the default HTML title and H1 header with string.
-R Rerun tree when max dir level reached.
-o file Output to file instead of stdout.
--inodes Print inode number of each file.——输出文件的inode;
--device Print device ID number to which each file belongs.——输出每个文件所属磁盘的id;
--noreport Turn off file/directory count at end of tree listing.
--nolinks Turn off hyperlinks in HTML output.
--dirsfirst List directories before files.
--charset X Use charset X for HTML and indentation line output.
--filelimit # Do not descend dirs with more than # files in them.