> For the complete documentation index, see [llms.txt](https://igb.mit.edu/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://igb.mit.edu/mini-courses/introduction-to-unix/the-unix-shell/using-the-unix-shell/searching-the-unix-tree.md).

# Searching the Unix Tree

* `find`
  * Searches directories to find a directory or file.

<pre class="language-bash"><code class="lang-bash"><strong>find ~ -name arrayDat*
</strong></code></pre>

* `grep`
  * Searches a file for a specific pattern.
  * Can be used similarly to find, but it also searches file contents.

```bash
grep -r "arrayDat*" .
```
