Installation and use of tree command
2019.03.12 17:50:43 read 281 words 185
yum install command:
yum the install -Y * Tree
(yum premise is to have the installation package may be connected to external networks)
Use the command:
1) to view a directory
tree /software/public/python/3.7.1/bin
without parameters, default is to scroll all the files listed
2) -L parameters, L: Level hierarchy in a hierarchical display, the latter figure is displayed several layers
tree -L 1 / xxx / xxx
3) -d parameter, d: directory directory, show only the directory
tree -L 1 -d / xxx / xxx
The same function show different find command
find plus conditions, likewise the directory to be listed, displayed somewhat ugly some parameters is slightly more complicated
find / xxx / xxx -maxdepth 1 -type d