Command 'tree' not found

$ tree
Command 'tree' not found, but can be installed with:

snap install tree # version 1.8.0+pkg-3fd6, or
apt install tree # version 1.8.0-1

See 'snap info tree' for additional versions.


Maybe you're not the administrator

$ vim ~/.bashrc
add:
export PATH="$PATH:/home/wangyk/bin"

then build tree and install to ~/bin


reference:
https://www.cnblogs.com/dieangel/p/3431202.html

posted @ 2021-03-04 15:32  王阳开  阅读(3109)  评论(0)    收藏  举报