> For the complete documentation index, see [llms.txt](https://cybersecurity-cloud-and-it-notes.gitbook.io/kyles-cybersecurity-cloud-and-it-gitbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cybersecurity-cloud-and-it-notes.gitbook.io/kyles-cybersecurity-cloud-and-it-gitbook/hack-the-box/academy/introduction-to-windows-command-line/finding-files-and-directories/tasks.md).

# Tasks

What command can be used to search for regular expression strings from command prompt?

<figure><img src="/files/i7dk54lJEFwLMQ7BIfRB" alt=""><figcaption></figcaption></figure>

Using the skills acquired in this and previous sections, access the target host and search for the file named 'waldo.txt'. Submit the flag found within the file.

I first used the "where" command in powershell that didn't work at all so I entered the command prompt by entering the "cmd" command.&#x20;

Then I attempted to use where command to find the waldo.txt file, even with recursion it was not found, so I changed directories to the user folder and ran the command with recursion through all user folders and found that the file was in the user folder for MTanaka

So I changed directories, found the file and used the "type" command to output the file's contents to get the flag.

<figure><img src="/files/p2ihKCtq0dhhm6tx6a2G" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/7r6phcrQbAUVC3YygQ1T" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/bwd6TEDh9RXy61MLD02Q" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Dacf9twws67IrKyZwqgS" alt=""><figcaption></figcaption></figure>
