常用参数:

-a  显示所有文件 包括隐藏文件

-d 只显示目录

-f 显示每个文件的全路径

-i 不显示树枝 常与-f一起搭配

-L 显示的层数

-F 区分哪个文件是目录

[root@ftp:/var/log]
> tree -L 1 -f /boot/
/boot
├── /boot/config-3.10.0-693.el7.x86_64
├── /boot/efi
├── /boot/grub
├── /boot/grub2
├── /boot/initramfs-0-rescue-f83731cbbf8341328a4ebee3d9ae3daa.img
├── /boot/initramfs-3.10.0-693.el7.x86_64.img
├── /boot/initramfs-3.10.0-693.el7.x86_64kdump.img
├── /boot/initrd-plymouth.img
├── /boot/symvers-3.10.0-693.el7.x86_64.gz
├── /boot/System.map-3.10.0-693.el7.x86_64
├── /boot/vmlinuz-0-rescue-f83731cbbf8341328a4ebee3d9ae3daa
└── /boot/vmlinuz-3.10.0-693.el7.x86_64

3 directories, 9 files

[root@ftp:/var/log]
> tree -L 1 -fi /boot/
/boot
/boot/config-3.10.0-693.el7.x86_64
/boot/efi
/boot/grub
/boot/grub2
/boot/initramfs-0-rescue-f83731cbbf8341328a4ebee3d9ae3daa.img
/boot/initramfs-3.10.0-693.el7.x86_64.img
/boot/initramfs-3.10.0-693.el7.x86_64kdump.img
/boot/initrd-plymouth.img
/boot/symvers-3.10.0-693.el7.x86_64.gz
/boot/System.map-3.10.0-693.el7.x86_64
/boot/vmlinuz-0-rescue-f83731cbbf8341328a4ebee3d9ae3daa
/boot/vmlinuz-3.10.0-693.el7.x86_64

3 directories, 9 files

[root@ftp:/var/log]
>

[root@ftp:/var/log]
> tree -L 1 -F /boot/
/boot/
├── config-3.10.0-693.el7.x86_64
├── efi/
├── grub/
├── grub2/
├── initramfs-0-rescue-f83731cbbf8341328a4ebee3d9ae3daa.img
├── initramfs-3.10.0-693.el7.x86_64.img
├── initramfs-3.10.0-693.el7.x86_64kdump.img
├── initrd-plymouth.img
├── symvers-3.10.0-693.el7.x86_64.gz
├── System.map-3.10.0-693.el7.x86_64
├── vmlinuz-0-rescue-f83731cbbf8341328a4ebee3d9ae3daa*
└── vmlinuz-3.10.0-693.el7.x86_64*

3 directories, 9 files

[root@ftp:/var/log]
> ls -l /boot/
total 104532
-rw-r--r--. 1 root root 140894 Aug 23 2017 config-3.10.0-693.el7.x86_64
drwxr-xr-x. 3 root root 17 Feb 28 2018 efi
drwxr-xr-x. 2 root root 27 Feb 28 2018 grub
drwx------. 5 root root 97 Feb 28 2018 grub2
-rw-------. 1 root root 51368908 Feb 28 2018 initramfs-0-rescue-f83731cbbf8341328a4ebee3d9ae3daa.img
-rw-------. 1 root root 20843907 Feb 28 2018 initramfs-3.10.0-693.el7.x86_64.img
-rw-------. 1 root root 18781172 Feb 28 2018 initramfs-3.10.0-693.el7.x86_64kdump.img
-rw-r--r--. 1 root root 611328 Feb 28 2018 initrd-plymouth.img
-rw-r--r--. 1 root root 293027 Aug 23 2017 symvers-3.10.0-693.el7.x86_64.gz
-rw-------. 1 root root 3228420 Aug 23 2017 System.map-3.10.0-693.el7.x86_64
-rwxr-xr-x. 1 root root 5877760 Feb 28 2018 vmlinuz-0-rescue-f83731cbbf8341328a4ebee3d9ae3daa
-rwxr-xr-x. 1 root root 5877760 Aug 23 2017 vmlinuz-3.10.0-693.el7.x86_64

[root@ftp:/var/log]
>

tree 核心命令参数的更多相关文章

  1. 3.3、Ansible命令参数详解

    0.ansible 命令参数详解: [root@localhost ~]# ansible Usage: ansible <host-pattern> [options] Options: ...

  2. linux mount命令参数及用法详解

    linux mount命令参数及用法详解 非原创,主要来自 http://www.360doc.com/content/13/0608/14/12600778_291501907.shtml. htt ...

  3. protoc 命令参数

    protoc 命令的获得 源码在 https://github.com/google/protobuf , 如果不想自己编译获得最新版本,则可以下载官方编译好的各个平台的,下载地址:https://g ...

  4. Linux核心命令使用方法

    一.Linux命令行常用快捷键 ctrl + c cancel 取消当前的操作 ctrl + l (小写字母L) clear(命令)清空当前屏幕 ctrl + d 退出当前用户 ctrl + r 查找 ...

  5. Linux编程 14 文件权限(用户列表passwd,用户控制shadow,useradd模板与useradd命令参数介绍)

    一. 概述 linux安全系统的核心是用户账户. 创建用户时会分配用户ID(UID). UID是唯一的,但在登录系统时不是用UID,而是用登录名.在讲文件权限之之前,先了解下linux是怎样处理用户账 ...

  6. maven常用命令参数

    整理了一些maven常用命令参数,以便参考:参考了maven官网和网上其他一些maven追随者的文件,不在此一一列举,但表示感谢! mvn命令参数 mvn -v, --version 显示版本信息; ...

  7. git的核心命令使用和底层原理解析

    文章目录: GIT体系概述 GIT 核心命令使用 GIT 底层原理 一.GIT体系概述 GIT 与 svn 主要区别: 存储方式不一样 使用方式不一样 管理模式不一样 1.存储方式区别 GIT把内容按 ...

  8. 为什么互联网巨头们纷纷使用Git而放弃SVN?(内含Git核心命令与原理总结)

    写在前面 最近发现很多小伙伴对于工作中的一些基本工具的使用还不是很了解,比如:Git这个分布式的代码管理仓库,很多小伙伴就不是很了解,或者说不是很熟悉.甚至有些小伙伴都没听说过Git,就只会用个SVN ...

  9. 『现学现忘』Git基础 — 25、git log命令参数详解

    目录 1.git log命令说明 2.git log命令参数 (1)不带参数 (2)常用显示参数 (3)--pretty参数 (4)--date=参数 (5)筛选参数 git log命令主要用于查看G ...

随机推荐

  1. 05 ADO.net

    ADO.NET就是一组类库 操作数据库用的.

  2. Python学习笔记(6)元组

    2019-03-02 元组(tuple): (1)元组是不可变的,无法进行任意修改.插入.删除一个元素. (2)创建元组大部分时候用小括号,如果创建的元组中只有一个元素,需要在它的后面加上一个逗号. ...

  3. 2019-02-25 SQL:cast(itemvalue as decimal(19,4))

    1.Operand data type nvarchar(max) is invalid for sum operator 要转换格式 2.Conversion failed when convert ...

  4. STM32 IIC双机通信—— HAL库硬件IIC版

    参考传送门 关于IIC的原理这里我就不多说了,网上有很多很好的解析,如果要看我个人对IIC的理解的话,可以点击查看,这里主要讲一下怎样利用STM32CubeMx实现IIC的通讯,经过个人实践,感觉HA ...

  5. thinkphp 同一字段不同查询条件实现

    搞定了 另外区间查询还可以支持更多的条件,只要是针对一个字段的条件都可以写到一起,例如:$map['name'] = array(array('like','%a%'), array('like',' ...

  6. mybatis 按照条件查询

    mybatis 按照条件查询 @Autowired private StudentMapper studentMapper; @Override public Map getStudentList(i ...

  7. HTML页面直接显示json 结构

    <html> <head> <meta http-equiv="Content-Type" content="text/html; char ...

  8. Java并发编程(七)ConcurrentLinkedQueue的实现原理和源码分析

    相关文章 Java并发编程(一)线程定义.状态和属性 Java并发编程(二)同步 Java并发编程(三)volatile域 Java并发编程(四)Java内存模型 Java并发编程(五)Concurr ...

  9. ZOJ 3688

    做出这题,小有成就感 本来已打算要用那个禁位的排列公式,可是,问题在于,每个阶乘前的系数r的求法是一个难点. 随便翻了翻那本美国教材<组合数学>,在容斥原理一章的习题里竟有一道类似,虽然并 ...

  10. we标签

    功能: ·        辅助标签.配合其它标签使用,防止与标准html标签冲突 ·        别名为test 使用方法: <we [name=key]>[value]</we& ...