Em um shell, você normalmente usaria which ou type para isso, por exemplo,
$ bash
$ which vile
/usr/bin/vile
$ type vile
vile is /usr/bin/vile
$
type é o preferido, pois funciona com um shell POSIX, enquanto which é um remanescente do C-shell. Na prática, eu uso um script mostrando as alternativas: