The tree command is used to display a graphical representation of a directory tree structure. It provides a visual overview of the directory's contents, including subdirectories and files.
The syntax of the tree command is as follows:
tree [OPTIONS] [DIRECTORY] .
"DIRECTORY" represents the directory you want to view. If no directory is specified, it will display the tree structure for the current directory.
Common options for the tree command include:
$ tree -L 3 ←Limit the displayed directory levels to 3 $ tree -s ←Display the sizes of files and directories $ tree ←Display the directory tree structure for the current directory . |-- Dektop |-- Documents |-- Download |-- Music |-- Pictures |-- Public |-- list_job |