> For the complete documentation index, see [llms.txt](https://n000b3r.gitbook.io/oscp-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://n000b3r.gitbook.io/oscp-notes/post-exploitation/finding-files.md).

# Finding Files

### Linux

```bash
find / -iname "flag*" 2>/dev/null
```

### Windows

* Use `dir /a` to see hidden files (eg: `.git` files)

```shell
cd /
```

```shell
dir /s flag.txt 2>NULL
```

```shell
type C:\Users\thegrinch\Documents\flag.txt
```
