mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-15 14:55:44 +02:00
tree: add Chinese translation
This commit is contained in:
parent
365572cacf
commit
203c247c5f
1 changed files with 31 additions and 0 deletions
31
pages.zh/osx/tree.md
Normal file
31
pages.zh/osx/tree.md
Normal file
|
@ -0,0 +1,31 @@
|
|||
# tree
|
||||
|
||||
> 以树的形式显示当前目录的内容.
|
||||
|
||||
- 显示深度达到 “级数” 级的文件和目录(其中1表示当前目录):
|
||||
|
||||
`tree -L {{级数}}`
|
||||
|
||||
- 只显示目录:
|
||||
|
||||
`tree -d`
|
||||
|
||||
- 同时显示隐藏文件:
|
||||
|
||||
`tree -a`
|
||||
|
||||
- 打印没有缩进行的树,显示完整路径(使用`-N`不转义空格和特殊字符):
|
||||
|
||||
`tree -i -f`
|
||||
|
||||
- 以可读格式打印每个文件节点的大小,目录显示其累积大小(类似在`du`命令中所示):
|
||||
|
||||
`tree -s -h --du`
|
||||
|
||||
- 使用通配符(glob)模式在树层次结构中查找文件,并删除不包含匹配文件的目录:
|
||||
|
||||
`tree -P '{{*.txt}}' --prune`
|
||||
|
||||
- 在树层次结构中查找目录,删除不属于所需目录的目录:
|
||||
|
||||
`tree -P {{文件夹名}} --matchdirs --prune`
|
Loading…
Add table
Reference in a new issue