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