Linux tree Command and Linuxtree command

Source: Internet
Author: User

Linux tree Command and Linuxtree command
Tree commands in Linux

-- View the directory tree in Linux

 

Sometimes we need to generate a directory tree structure, which can be ls-R, but the actual effect is not good.

 

Tree Command is required, but most Linux systems do not install the command by default. You need to install the command yourself. Common usage of tree:

Tree-a # Show All


Tree-d # show only Directories

Tree-L n # n indicates the number... indicates the number of layers to be displayed...

Tree-f # Show the complete path ..

 


What can I do if I cannot find the tree Command in linux?

Shendu @ shenlan :~ $ Tree
The program "tree" has not been installed. You can use the following command to install:
Sudo apt-get install tree
Shendu @ shenlan :~ $ Sudo apt-get install tree
Reading the package list... complete
Analyzing the dependency tree of the software package
Reading status information... complete
The following [new] software packages will be installed:
Tree
0 software packages are upgraded, 1 new software package is installed, 0 software packages are to be uninstalled, and 0 software packages are not upgraded.
Download the 31.1kB software package.
After decompression, extra space of 98.3kB is consumed.
Obtain: 1 cn.archive.ubuntu.com/ubuntu/ lucid/universe tree 1.5.3-1 [31.1kB]
Download 31.1kB, which takes 0 seconds (87.0kB/s)
The software package tree that has been deselected is selected.
(Reading the database... the system currently has a total of 166619 files and directories installed .)

The tree command displays the directory tree in the current folder!

Linux has the same command as the tree Command in WINDOWS.

Is the tree. If you are prompted to install the package without this command

Yum install tree
The current version is 1.5.0-4.

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.