Environment
Sample
Run the following command to create the sample directories and files.
mkdir -p ./dir1/dir2
touch ./file0.txt ./dir1/file1.txt ./dir1/dir2/file2.txt
Flow
-
Install
treecommand.
brew install treeWe can check the version of this command by running the following command.
tree --versionAs of the time of writing, the version is 2.2.1.
-
Run the command.
treeThe result is as follow.
. ├── dir1 │ ├── dir2 │ │ └── file2.txt │ └── file1.txt └── file0.txt
Manual
Running the following command will display the manual page for the tree command in Zsh.
man tree
After reading, press the q key to return to Zsh.
The source for tree v2.2.1 manual is here.
Top comments (0)