This link might be useful for the OP, especially the type command
Ha ha, over twenty years ago I was ordered by our Unix guru at work to never use the C shell and to "always use the type command, never the which command".
Being frightened of our Unix guru, I've always followed that advice ... but been surprised many times over the years
by folks looking over my shoulder asking "what is the type command?" - my experience has been that
most people use the which command and have never even heard of the type command! ...
perhaps showing the importance of a descriptive name.