New answers tagged which
You can search the $PATH yourself to find a command: COMMAND=vim # This is the command to search for (IFS=:; for dir in $PATH; do [ -x $dir/$COMMAND ] && echo $dir/$COMMAND; done) (this should work in ash and many other Bourne shell derivatives)
whereis Not quite the same, but should give you the binary's location like 'which' does.
This should be a standard solution: type type -t type -p
Top 50 recent answers are included