zoukankan      html  css  js  c++  java
  • 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]
    >

  • 相关阅读:
    [如何构建自己的轮式移动机器人系统·从入门到放弃]机器人底层篇
    Readme.txt
    [MATLAB&SIMULINK] 如何提取并处理Simscape Power System 中powergui的谐波分析数据
    记录2016年12月11日
    [深度强化学习] blog翻译使用Keras与Gym仿真环境进行深度Q学习(DQL)
    使用PARL与Gym仿真环境进行深度Q学习(DQL)
    Telerik控件使用Expression_DarkTheme后引发Combobx下拉问题
    [Win系统][临时方案]系统任务管理器不能使用临时性解决方案
    [Visual Studio]重置开发环境
    WPF中使用DataGrid后,里面的Button的Command不响应的问题
  • 原文地址:https://www.cnblogs.com/liweiming/p/9949943.html
Copyright © 2011-2022 走看看