Tuesday, June 25, 2013

Checking for multiple installs of a Unix executable

Pass the -a flag to Unix which to get the location of all known executables of a given name:

$ which -a ctags
/usr/local/bin/ctags
/usr/bin/ctags

Omit the flag for only the first install found by the shell.

No comments: