---
title: "แสดงโครงสร้าง directory โดยยกเว้นบาง dir"
description: "เคยอยากแสดงโครงสร้างของ directory ปัจจุบันโดยยกเว้นสักหนึ่งหรือสอง directory ไหม?"
canonical: https://oozou.com/til/list-directory-structure-except-one-or-more-dirs-24
locale: th
date: 2020-10-13
topic: shell
---

# แสดงโครงสร้าง directory โดยยกเว้นบาง dir

> เคยอยากแสดงโครงสร้างของ directory ปัจจุบันโดยยกเว้นสักหนึ่งหรือสอง directory ไหม?

Published: 2020-10-13 · Topic: [shell](https://oozou.com/th/til-topics/shell) ([markdown](https://oozou.com/th/til-topics/shell.md))

เคยอยากแสดงโครงสร้างของ directory ปัจจุบันโดยยกเว้นสักหนึ่งหรือสอง directory ไหม?

```shell
#NPM or yarn project
tree -I node_modules
```

```shell
# Elixir Mix project
tree -I 'deps|test'
```

---

Contact OOZOU: hello@oozou.com · +66 2544 0000 · https://oozou.com/th/contact

More for AI agents: https://oozou.com/llms.txt · every page has a markdown twin at its URL plus ".md"
