今天用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