Tag Info

New answers tagged

1

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)


1

whereis Not quite the same, but should give you the binary's location like 'which' does.


4

This should be a standard solution: type type -t type -p



Top 50 recent answers are included