From 4ca0b553075a1ea1042cf26787cc2c0739beb644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E5=BC=9F=E8=B0=83=E8=B0=83=E2=84=A2?= Date: Wed, 22 Feb 2023 10:08:21 +0800 Subject: [PATCH] doc: Update tree. --- command/tree.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/command/tree.md b/command/tree.md index a9da13b827..1e77168785 100644 --- a/command/tree.md +++ b/command/tree.md @@ -119,4 +119,17 @@ tree -if /private/ /private/tftpboot ``` +显示所有文件目录(包括隐藏文件)并忽略(node_modules|.git)目录,展示(`-L 2`)两层。 + +```shell +$ tree -I 'node_modules|.git' -L 2 -a + +. +├── .github +│   └── workflows +├── LICENSE +├── README.md +└── renovate.json +``` +