Basic Syntax of Tree command in Linux
tree [options]
If we want to display the directory structure using the simple `tree` command without adding any option.
Here `tree` command will output the directory structure, starting from the current directory.
Tree command in Linux with examples
In UNIX/LINUX systems, as well as MS-DOS and Microsoft Windows, the tree is a recursive directory listing program that produces a depth-indented listing of files. With no arguments, the tree lists the files in the current directory. When directory arguments are given, the tree lists all the files or directories found in the given directories each in turn.
It shows directories as Braches and files as leaves which makes it easy for a user to visualize the organization of files and directories within a given path.