编译安装 tree 命令

 

 

  • tree下载地址:http://mama.indstate.edu/users/ice/tree/
  • Centos发行版,可以直接使用命令 yum -y install tree
  • 内网服务,只好选择源码编译,需要有gccmake

下载源码包

Linux:~ # wget http://mama.indstate.edu/users/ice/tree/src/tree-1.8.0.tgz
Linux:~ # tar xf tree-1.8.0.tgz -C /usr/local/src/

编译源码包

Linux:~ # cd /usr/local/src/tree-1.8.0/
Linux:/usr/local/src/tree-1.8.0 # make install
posted @ 2021-05-05 12:19  月巴左耳东  阅读(212)  评论(2)    收藏  举报