title: How deep does the findstr command go if you run it in the C:/ drive?
body: <p>So I have been recently doing HackTheBox and am working on some of their starter labs. In one of them, the answer to find the root password is through finding this hidden subfolder within one of the User directories. </p>
  
  <p>Before I looked at the answer to the problem I had run the following command:</p>
  
  <p><code>findstr /s /p /i /m &lt;admin.* *.*</code></p>
  
  <p>as well as </p>
  
  <p><code>findstr /s /p /i /m administrator *.*</code></p>
  
  <p>Which in both cases should:</p>
  
  <ul>
  <li>/s : Search the current directory and all subdirectories</li>
  <li>/p : Skip files with non-printable characters</li>
  <li>/i : Ignore the case of the word</li>
  <li>/m : Print only the filename if a file contains a match</li>
  </ul>
  
  <p>When I ran this from the C:/ drive, it returned many files but not the one that had the root password in it. I eventually gave in and viewed the answer and I was on the right track ("administrator" was in the file) but I am wondering why it didn't find it when I ran it in the C:/ drive. </p>
  
  <p>I ran the same command again, this time in the basic user folder ( C:/Users/ ) and it did find it. </p>
  
  <p>I just assumed that since the /s command searches through ALL subdirectories that I would have found the file in that route. If someone might be able to explain why this didn't work, I would love to know why. </p>