Introduction
Sometimes you want to find where a program or command is located on your computer. The commands 'which' and 'whereis' help you find the exact location of these commands so you know where they run from.
When you want to know the full path of a command you just typed, to check which version runs.
When you have multiple versions of a program and want to find out which one is used by default.
When a command is not working and you want to verify if it is installed and where it is located.
When you want to find related files like source or manual pages for a command.
When you are writing scripts and want to use the full path of a command to avoid confusion.