Linux--Tree command

Source: Internet
Author: User
Tags control characters printable characters

Tree--help   displaying files and folders in a tree-type structure  

Usage:tree [-acdfghilnpqrstuvxacdfqnsux] [-H basehref] [-t title] [-L level [-R]]
[-P pattern] [-I pattern] [-o filename] [--version] [--help] [--inodes]
[--device] [--noreport] [--nolinks] [--dirsfirst] [--charset charset]
[--filelimit[=]#] [- -SI] [--timefmt[=]<f>] [<directory list>]
 -------Listing options-------
 -a            all files are listed   &NBSP;&NBSP;&NBSP;&NBSP ;  # Show All Files
 -D            list directories only.   & nbsp; # Show only files, do not display files
 -l            follow symbolic links like di Rectories.
 -F            print the full path prefix for each file.

-X stay on current filesystem only. #confine the scope to the current file system, and if certain subdirectories under the specified directory reside on another file system, the subdirectory is excluded from the search scope.

-L level descend-directories deep. # show NLayer Directory
-R rerun tree when Max dir level reached.
-P pattern List only those files that match the pattern given. #Show only file or directory names that match "pattern"
-I pattern do not list files that match the given pattern. #do not display file or directory names that conform to the template styletree-i "*.C"
--noreport Turn off file/directory count at end of tree listing.
--charset x Use charset X for terminal/html and indentation line output.
--filelimit # do not descend dirs with more than # files in them.
--timefmt <f> Print and format time according to the format <f>.
-o filename Output to file instead of stdout.
--------File Options---------
-Q Print non-printable characters as '? '. #with "?" To list file and directory names by replacing control characters
-N Print non-printable characters as is. #directly lists file and directory names, including control characters
-Q Quote filenames with double quotes.
-P Print The protections for each file. #List permission marks
-U displays file owner or UID number. #Lists the owner name of the file or directory, and displays the user ID when there is no corresponding name

-G Displays file group owner or GID number #列出文件或目录的所属群组名称, the group ID is displayed when there is no corresponding name

-S Print the size in bytes of each file. #list file or directory size
-H Print the size in a more human readable the.
--si like-h, but use in SI units (powers of).
- D Print The date of last modification or (-c) status change. #list change times for files or directories
- F appends '/', ' = ', ' * ', ' @ ', ' | ' or ' > ' as per ls-f.
--inodes Print inode number of each file.
--device Print device ID number to which each file belongs.
  -------Sorting options-------
-v Sort files alphanumerically by version. #按字母数字排序
-R Sort files in reverse alphanumeric order. # Sort alphabetically by number
-T Sort files by last modification time. # files sorted by last modified time
-C Sort files by last status change time. # Sort by last modified state
-u Leave files unsorted. # Sort Sorting
--dirsfirst List directories before files (-u disables).
-------Graphics Options------
-i Don ' t print indentation lines. #do not list file or directory names in ladder form
-A Print ANSI lines graphic indentation lines. #use Asni drawing characters to display a tree view instead of a combination of ASCII characters
-S Print with ASCII graphics indentation lines.
- n Turn colorization off always (-C overrides). #Do not add color to the list of files and directories
-C Turn colorization on always. #add color to the list of files and catalogs to make it easy to differentiate between types
-------xml/html options-------
-X Prints out an XML representation of the tree.
-H basehref Prints out HTML format with BaseHref as top directory.
-T string Replace the default HTML title and H1 header with string.
--nolinks Turn off hyperlinks in HTML output.
----Miscellaneous Options----
--version Print version and exit.
--help Print Usage and this help message and exit.

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.