-L level 追溯level级别的打印
-A 打印图型压痕线
-S 打印字符压痕线
-n 总是关闭颜色 (-C 覆盖).
-C 打开颜色
-P pattern 列出仅仅符合正则表达式的
-I pattern 不列出符合正则表达式的
-H baseHREF Prints out HTML format with baseHREF as top directory.打印基本href格式的HMTL作为顶层目录
-T string Replace the default HTML title and H1 header with string. 用字符串代替这个缺省的HTML标题和H1标题
-R Rerun tree when max dir level reached.重演树当到达最深目录级别
-o file 输出到file 取代输出流
--inodes 打印每个文件的节点数
--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. 关闭HTML的输出的超链接
--dirsfirst List directories before files.在列出文件以前先打印目录
--charset X Use charset X for HTML and indentation line output. 为HTML和压痕线指定字符集X作为输出
--filelimit # Do not descend dirs with more than # files in them. 目录追溯不超过 #(目录名)
解读:
1. –v –r
根据字母,数字正序或者倒序排列文件
2. -L level 或者 --filelimit #
都是追溯目录的级别
3. -x
tree -x ${dir} 只打印当前一级目录信息
与文件相关(不是文件内容相关)的主要操作告一段落,周末做个小小的总结,并且尝试写一些基本的linux命令。










