

Hint: don’t use ANSI lines with this option, and don’t give more than one directory in the directory list. That is, the local directory may be `/local/ftp/pub’, but it must be referenced as `’ (baseHREF should be `’). baseHREF gives the base ftp location when using HTML output. H baseHREF : Turn on HTML output, including HTTP references. R : Recursively cross down the tree each level directories (see -L option), and at each of them execute tree again adding `-o 00Tree.html’ as a new option. L level : Max display depth of the directory tree. This option is now equivalent to `–charset=IBM437′ and will eventually be depreciated. S : Turn on ASCII line graphics (useful when using linux console mode fonts). A : Turn on ANSI line graphics hack when printing the indentation lines.

C : Turn colorization on always, using built-in color defaults if the LS_COLORS environment variable is not set. n : Turn colorization off always, over-ridden by the -C option. –dirsfirst : List directories before files. t : Sort the output by last modification time instead of alphabetically. r : Sort the output in reverse alphabetic order. N : Print non-printable characters as is instead of the default carrot notation. q : Print non-printable characters in file names as question marks instead of the default carrot notation. F : Append a `/’ for directories, a `=’ for socket files, a `*’ for executable files and a `|’ for FIFO’s, as per ls -F

–device : Prints the device number to which the file or directory belongs –inodes : Prints the inode number of the file or directory D : Print the date of the last modification time for the file listed. g : Print the group name, or GID # if no group name is available, of the file. u : Print the username, or UID # if no username is available, of the file. s : Print the size of each file along with the name. p : Print the protections for each file (as per ls -l). –noreport : Omits printing of the file and directory report at the end of the tree listing. –timefmt format : Prints (implies -D) and formats the date according to the format string which uses the strftime syntax. –filelimit # : Do not descend directories that contain more than # entries. –prune : Makes tree prune empty directories from the output, useful when used in conjunction with -P or -I. I pattern : Do not list those files that match the wild-card pattern. Valid wildcard operators are `*’ (any zero or more characters), `?’ (any single character), `’ (any single character listed between brackets (optional – (dash) for character range may be used: ex: ), and `’ (any single character not listed in brackets) and `|’ separates alternate patterns. Note : you must use the -a option to also consider those files beginning with a dot `.’ for matching. P pattern : List only those files that match the wild-card pattern. x : Stay on the current file system only, as with find -xdev. Links that would result in a recursive loop are avoided. l : Follows symbolic links to directories as if they were directories. Useful when used in conjunction with the -f option. i : Tree will not print the indentation lines.
#Display directory tree linux mac os full#
f : Prints the full path prefix for each file. In no event does tree print the file system constructs `.’ (current directory) and `.’ (previous directory). By default, tree does not print hidden files (those beginning with a dot `.’). There are options to change the characters used in the output, and to use color output. Upon completion of listing all files and directories found, tree returns the total number of files and directories listed.

When directory arguments are given, tree lists all the files or directories found in the given directories each in turn. With no arguments, tree lists the files in the current directory. In UNIX/LINUX systems, as well as MS-DOS and Microsoft Windows, tree is a recursive directory listing program that produces a depth-indented listing of files. ISRO CS Syllabus for Scientist/Engineer Exam.ISRO CS Original Papers and Official Keys.GATE CS Original Papers and Official Keys.
