Tree command: Tree-list contents of directories in a tree-like format
function
The Tree command is used to display the directory hierarchy relationship, which is commonly used as a separate tree command, and many options can be used to query man's help in future work
This command is generally Linux system does not bring manual installation, installation method: can be mounted CD-ROM to switch to the CD directory, find the installation package name and then use RPM-IVH installation
Syntax: Tree [option] DIR
Installation instance
[[email protected] ~]# mkdir /media/cdrom //Create disc mount directory [[email protected] ~]# mount -r /dev/sr0/media/cdrom //mount the disc to Media/cdrom [[email protected] ~]# cd !$ //Switch to disc mount directory cd /media/cdrom[[email protected] cdrom]# cd packages/ //switch to CD-ROM to save the installation package in the directory [[Email protected] packages]# ls tree* //Filtering view tree installation package files tree-1.5.3-3.el6.x86_64.rpm[[email protected] packages]# rpm -ivhtree-1.5.3-3.el6.x86_64.rpm //installation treepreparing... ################################ ########### [100%] 1:tree ########################################### [100%]//installation Complete [email protected] ~]# tree /tmp/tmp├── mysql.sock├── test│ └── test1└── yum.log// Of course, you can also use [[Email protected] tmp]# yum -y install tree yum] After configuring the Yum source to install
This article is from the "Perthon" blog, make sure to keep this source http://perthon.blog.51cto.com/10484057/1761853
Linux commands (5)---tree command