tree 核心命令参数
常用参数:
-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 核心命令参数的更多相关文章
- 3.3、Ansible命令参数详解
0.ansible 命令参数详解: [root@localhost ~]# ansible Usage: ansible <host-pattern> [options] Options: ...
- linux mount命令参数及用法详解
linux mount命令参数及用法详解 非原创,主要来自 http://www.360doc.com/content/13/0608/14/12600778_291501907.shtml. htt ...
- protoc 命令参数
protoc 命令的获得 源码在 https://github.com/google/protobuf , 如果不想自己编译获得最新版本,则可以下载官方编译好的各个平台的,下载地址:https://g ...
- Linux核心命令使用方法
一.Linux命令行常用快捷键 ctrl + c cancel 取消当前的操作 ctrl + l (小写字母L) clear(命令)清空当前屏幕 ctrl + d 退出当前用户 ctrl + r 查找 ...
- Linux编程 14 文件权限(用户列表passwd,用户控制shadow,useradd模板与useradd命令参数介绍)
一. 概述 linux安全系统的核心是用户账户. 创建用户时会分配用户ID(UID). UID是唯一的,但在登录系统时不是用UID,而是用登录名.在讲文件权限之之前,先了解下linux是怎样处理用户账 ...
- maven常用命令参数
整理了一些maven常用命令参数,以便参考:参考了maven官网和网上其他一些maven追随者的文件,不在此一一列举,但表示感谢! mvn命令参数 mvn -v, --version 显示版本信息; ...
- git的核心命令使用和底层原理解析
文章目录: GIT体系概述 GIT 核心命令使用 GIT 底层原理 一.GIT体系概述 GIT 与 svn 主要区别: 存储方式不一样 使用方式不一样 管理模式不一样 1.存储方式区别 GIT把内容按 ...
- 为什么互联网巨头们纷纷使用Git而放弃SVN?(内含Git核心命令与原理总结)
写在前面 最近发现很多小伙伴对于工作中的一些基本工具的使用还不是很了解,比如:Git这个分布式的代码管理仓库,很多小伙伴就不是很了解,或者说不是很熟悉.甚至有些小伙伴都没听说过Git,就只会用个SVN ...
- 『现学现忘』Git基础 — 25、git log命令参数详解
目录 1.git log命令说明 2.git log命令参数 (1)不带参数 (2)常用显示参数 (3)--pretty参数 (4)--date=参数 (5)筛选参数 git log命令主要用于查看G ...
随机推荐
- Django中模块的加载原理
Django中的module的加载是通过反射来完成的,借助importlib中的import_module函数来实现的动态加载.import_module的内部通过使用了递归和线程锁,字符串的切割,实 ...
- logstash配置如何理解?
elasticsearch { action => "index" #The operation on ES hosts => "localhost: ...
- HYSBZ-1566 管道取珠 区间dp
题目链接:https://cn.vjudge.net/problem/HYSBZ-1566 题意 思路 已经说了,面对\sum a^2的时候把状态分两个, 当这两个状态相同时,满足题意的方案数即变为a ...
- 20121124.Nodejs异步式I/O与事件式编程
异步: 你请人吃饭,准备一起去的.结果那人刚好有事,让你先去点菜,你去点好菜,他忙完就来了,这就是异步的优势(不耽误事!)同步: 就是,你必须等那个人忙完了,才一起去(浪费时间) 理解来源于群友&qu ...
- JS中的Set 与去重
-----------------------Set 与去重----------------------- ES6 提供了新的数据结构 Set.它类似于数组,但是成员的值都是唯一的,没有重复的值.Se ...
- 06002_Redis概述
1.什么是Redis? (1)Redis是用C语言开发的一个开源的高性能键值对(key-value)数据库,他通过提供多种键值对数据类型类适应不同场景下的存储需求: (2)Redis是一种高级的key ...
- 2.WHERE中使用=,>,>=,<,<=,<>,!=比较符号
//查询工资大于等于2000的人 select * from person salary >= 2000; //查询名字等于scott的人 select * from per ...
- ASP.NET-Router配置中MapRoute的参数
App_Start文件夹中的RouteConfig MapRoute(string name,string url); MapRoute(string name,string url,object d ...
- JavaWeb初学者session的使用
使用request对象的getSession()获取session,如果session不存在则创建一个 HttpSession session = request.getSession();将数据存储 ...
- [AngularJS]Chapter 4 AngularJS程序案例分析
前边讲的都是基础.本章看看他们怎么合作的. 我们要建一个程序.一次一步.章末结束 [这个程序] GutHub是一个简单的菜谱管理程序.功能是存好吃的的菜谱并提供步骤.这个程序包含: 两列布局 左边是导 ...