centos7 bash: tree: 未找到命令...

[kui@localhost ssk]$ tree dl
bash: tree: 未找到命令...


在Linux上,“tree”命令是一个非常有用的命令,用于在目录中显示文件和子目录,但在我的CentOS 7.1机器上不存在

所以,只需安装它:
[root@localhost ssk]# yum -y install tree
已加载插件:fastestmirror, langpacks
base                                           | 3.6 kB     00:00     
extras                                         | 3.4 kB     00:00     
mysql-connectors-community                     | 2.5 kB     00:00     
mysql-tools-community                          | 2.5 kB     00:00     
mysql57-community                              | 2.5 kB     00:00     
updates                                        | 3.4 kB     00:00     
updates/7/x86_64/primary_db                      | 6.0 MB   00:04     
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 tree.x86_64.0.1.6.0-10.el7 将被 安装
--> 解决依赖关系完成

依赖关系解决

======================================================================
 Package      架构           版本                  源            大小
======================================================================
正在安装:
 tree         x86_64         1.6.0-10.el7          base          46 k

事务概要
======================================================================
安装  1 软件包

总下载量:46 k
安装大小:87 k
Downloading packages:
tree-1.6.0-10.el7.x86_64.rpm                     |  46 kB   00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  正在安装    : tree-1.6.0-10.el7.x86_64                          1/1 
  验证中      : tree-1.6.0-10.el7.x86_64                          1/1 

已安装:
  tree.x86_64 0:1.6.0-10.el7                                          

完毕!
[root@localhost ssk]# tree dl
dl
|-- dl1
|   |-- 5.txt
|   `-- 7.txt
|-- dl2
|   `-- 123.c
`-- dll

3 directories, 3 files

 

  • 5
    点赞
  • 10
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值