From e93edc637b4187dd6c1b17bdba1af7ce71c90514 Mon Sep 17 00:00:00 2001 From: Wooseok Date: Sun, 14 Jul 2024 19:07:59 +0900 Subject: [PATCH] update command tree in `Tips` --- docs/Tips/command-tree.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 docs/Tips/command-tree.md diff --git a/docs/Tips/command-tree.md b/docs/Tips/command-tree.md new file mode 100644 index 0000000..b4d2c1f --- /dev/null +++ b/docs/Tips/command-tree.md @@ -0,0 +1,27 @@ +--- +sidebar_position: 5 +--- + +# tree 명령어 사용팁 + +폴더의 하위 구조를 계층적으로 표시할 때 사용 + +1. 표시할 depth제한 + +- -L(Level) 옵션뒤에 depth 2까지 표시 + +``` +tree -L 2 +``` + +2. directory만 표시 + +``` +tree -d +``` + +3. 특정폴더 제외 + +``` +tree -I "node_modules" +```