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 ...
随机推荐
- router+x
vue-router官方的路由管理器 包含的功能: ——绑定方法进行跳转 路由嵌套 写的不一样搜索的路由路径也不一样 二级路由 设置默认路由 导航守卫: 用于强制跳转或者取消的方式 ...
- css——外部样式
外部样式 先建立一个css文件,如下: 然后开始写代码,不要加<style> 然后可以在html文件中的<head>内引用:<link rel="stylesh ...
- easyUI combobox的使用
1.需要用到的方法 设置组合框(combobox)值的数组. $('#cc').combobox('setValues', ['001','002']); 设置组合框(combobox)的值. $(' ...
- kvm三个kernel相关的调优
今天在杭州参加淘宝嘉年华技术沙龙,主题是虚拟化和云计算,三个讲演: 淘宝网子团分享淘宝kvm技术的使用 华为的杨晓伟介绍虚拟化技术 阿里云郑永升介绍弹性云计算技术 其中KVM 调优,三点值得关注的: ...
- 《Exception》第八次团队作业:Alpha冲刺(第三天)
一.项目基本介绍 项目 内容 这个作业属于哪个课程 任课教师博客主页链接 这个作业的要求在哪里 作业链接地址 团队名称 Exception 作业学习目标 1.掌握软件测试基础技术.2.学习迭代式增 ...
- 为Electron 安装 vue-devtool等扩展
相关代码: https://github.com/WozHuang/Barrage-helper/blob/master/src/main/index.dev.js 在SPA逐渐成为构建优秀交互体验应 ...
- 二、frps 完整配置文件
# [common] is integral section [common] # A literal address or host name for IPv6 must be enclosed # ...
- 使用tf.ConfigProto()配置Session运行参数和GPU设备指定
参考链接:https://blog.csdn.net/dcrmg/article/details/79091941 tf.ConfigProto()函数用在创建session的时候,用来对sessio ...
- 【转】Visual Studio單元測試小應用-測執行時間
[转]Visual Studio單元測試小應用-測執行時間 Visual Studio的單元測試會記錄每一個測試的執行時間,如果有幾個Method要測效能,以前我會用Stopwatch,最近我都改用單 ...
- CSS学习(三)
CSS 分组 和 嵌套 选择器 分组选择器 h1,h2,p { color:green; } 嵌套选择器 <!DOCTYPE html> <html> <head> ...