linux 找不到tree命令解决办法


今天用Ubuntu 发现有几个命令不能用,提示如下:

 

root@ubuntu:/# tree /home/
The program 'tree' is currently not installed. You can install it by typing:
apt install tree

 

然后找了找实际就是因为没有安装tree这个东西,执行安装

sudo apt-get install tree 

然后再执行命令如下:

root@ubuntu:/home# tree /home/
/home/
└── lhw
    ├── Desktop
    ├── Documents
    ├── Downloads
    │   └── sogoupinyin.deb
    ├── Music
    ├── Pictures
    ├── Public
    ├── Templates
    └── Videos


9 directories, 1 file

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM