Installation and use of tree command

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

python installation bin directory

2) -L parameters, L: Level hierarchy in a hierarchical display, the latter figure is displayed several layers
tree -L 1 / xxx / xxx

Only one display

3) -d parameter, d: directory directory, show only the directory
tree -L 1 -d / xxx / xxx

No files of words

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

Guess you like

Origin www.cnblogs.com/qingbai/p/11926561.html