Centos7 installation tree

By default, the CentOS 7 no tree command. As shown below:

 

First, install tree

 1, " the sudo the install tree yum -Y " command, the installation command tree. As shown below:

 

 2, using the tree command. As shown below:

After 7 CentOS installation tree, use the "tree" command can not display Chinese characters correctly.

Need to use the "tree -N" command. ( "-N" option: stay as they are non-printable characters .)

 

 Second, uninstall tree

 Uninstall tree command. As shown below:

 

Guess you like

Origin www.cnblogs.com/greamrod/p/12588131.html