---
title: "特定のディレクトリを除いてディレクトリ構造を一覧表示する"
description: "1 つか 2 つのディレクトリを除いて、カレントディレクトリの構造を表示したいと思ったことはありませんか？"
canonical: https://oozou.com/til/list-directory-structure-except-one-or-more-dirs-24
locale: ja
date: 2020-10-13
topic: shell
---

# 特定のディレクトリを除いてディレクトリ構造を一覧表示する

> 1 つか 2 つのディレクトリを除いて、カレントディレクトリの構造を表示したいと思ったことはありませんか？

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

1 つか 2 つのディレクトリを除いて、カレントディレクトリの構造を表示したいと思ったことはありませんか？

```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/ja/contact

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