The which command allows you to find the location of programs contained within any of the directories listed in the $PATH variable.
$which vim
/usr/bin/vim
Which Command
The which command allows you to find the location of programs contained within any of the directories listed in the $PATH variable.
$which vim
/usr/bin/vim