Linux commands (5)---tree command

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.