Thank you for your advice.
> what's actually happening is the shell is searching directories that are listed in your $PATH environment
These kinds of explanations is what I actually need. Many tutorials I have followed explained which command to use when I want to have X done. Instead, I need to know what those commands actually do on a lower level.