博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
centos下的tree的使用
阅读量:7228 次
发布时间:2019-06-29

本文共 2699 字,大约阅读时间需要 8 分钟。

安装tree

yum install tree

tree的使用

[root@iZ23c5es4wgZ zookeeper-3.4.7]# tree ./bin./bin├── README.txt├── zkCleanup.sh├── zkCli.cmd├── zkCli.sh├── zkEnv.cmd├── zkEnv.sh├── zkServer.cmd└── zkServer.sh

查看tree的命令帮助

[root@iZ23c5es4wgZ zookeeper-3.4.7]# tree --helpusage: 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 #] [
] -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. -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. -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. -S Print with ASCII graphics indentation lines. -n Turn colorization off always (-C overrides). -C Turn colorization on always. -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. --device Print device ID number to which each file belongs. --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.

查看tree的命令解释

-adfghilnpqrstuvxACDFNS:查看文件访问权限,包括文件创建日期,文件大小,文件路径..

—L:查看深度

-H:查看当前目录下文件中包含pattern的所有文件

-d:仅查看目录

-P:查看匹配pattern的文件

。。。。 还有命令用到再加

转载于:https://my.oschina.net/xForMe/blog/542279

你可能感兴趣的文章
IntelliJ IDEA搭建SpringBoot
查看>>
深入浅出iOS事件机制
查看>>
hadoop理解
查看>>
Oracle——18用户、角色和权限信息的视图总结
查看>>
WordPress 中的 Debug 模式(调试模式)
查看>>
node下使用express框架,ejs模板引擎
查看>>
搜索:文本的匹配算法
查看>>
Fedora 17 LibreOffice 办公套件的安装与汉化
查看>>
scrollview不充满屏幕的原因
查看>>
PHP单例模式
查看>>
解密敏捷自动化测试
查看>>
DelphiMVC拦截器介绍
查看>>
Spring Cloud构建微服务架构:分布式配置中心【Dalston版】
查看>>
iOS 11正式版终于来了!强力助攻小程序
查看>>
开放平台API接口调用频率控制系统设计浅谈
查看>>
Lucene4.3进阶开发之潜龙勿用( 七)
查看>>
DTD和schema小总结
查看>>
去掉导航栏的黑线
查看>>
怎样让html加载完毕后加载js代码
查看>>
piwik 案例介绍
查看>>