Centos7 安装 tree

默认情况下,CentOS 7中没有tree命令。如下图:

一、安装tree

 1、使用"sudo yum -y install tree"命令,安装tree命令。如下图:

 2、使用tree命令。如下图:

CentOS 7中安装tree之后,使用"tree"命令不能正常显示中文字符。

需要使用"tree -N"命令。("-N"选项:按原样打印不可打印字符。)

 二、卸载tree

 卸载tree命令。如下图:

猜你喜欢

转载自www.cnblogs.com/greamrod/p/12588131.html