[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 [參數] [目錄]
-a All files are listed. ——顯示所有文件;-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.