Where do my files created in terminal on macOS end up?

Hi, I just started the Odin Project and am on the command line basics. If I enter in touch index.html on the command line, that creates a new file called index.html. Now when I go to finder on my mac I don’t see this file anywhere or any other file that I create using the command line. I also have the same question on creating new directories. I create a new directory, but where do I find it? when searching under finder?

It would be in the home directory.

https://www.cnet.com/how-to/how-to-find-your-macs-home-folder-and-add-it-to-finder/ Here’s the first Google result for it

Thank you!