linux command --tree command

Linux tree command is used to list the contents of a directory tree view.

Instruction execution tree, it will list all the files in the specified directory, including subdirectories in the file.

Syntax:      Tree    [- aACdDfFgilnNpqstux ] [- the I   <style templates>] [- P   <style templates>] [directory ...] 

Parameter Description:

  • -a displays all files and directories
  • -A character display graphics using ASNI tree rather than the ASCII character combination.
  • -C file and directory listing plus color, ease of distinguishing types.
  • -d directory names rather than content.
  • -D list to change the time the file or directory.
  • -f before each file or directory, display the full relative path name.
  • -F executing files, directories, Socket, symbolic links, piping name names, each coupled with "*", "/", "=", "@", "|" number. Similar to ls -F)
  • -g lists the group name belongs to a file or directory, when no corresponding name, group identification code is displayed.
  • -i do not stepwise listed file or directory name.
  • -I <style template> does not display the file or directory name matches the template style.
  • The properties -l encountered directory is a symbolic link, the original directory listed directly to the connection points.
  • -n do not add color to the list of files and directories.
  • -N listed directly file and directory names, including control characters.
  • -p lists the permissions marked.
  • -P <style templates> displays only the file or directory name matches the template style.
  • -q use "?" was replaced by control characters listed in the file and directory names.
  • -s List file or directory size.
  • -t Sort by modification time of files and directories.
  • -u listed owner name of the file or directory, when no corresponding name, user identification code is displayed.
  • -x limited the scope of the existing file system, if certain subdirectories under the specified directory, which is stored in another file system, then the subdirectories to be excluded from the scope of looking outside.
  • -L maximum number of layers (Level) setting display (depth)

Guess you like

Origin www.cnblogs.com/carey9420/p/11983494.html