find the full path of an executable

If we supposed our executable is named prg and located in the ./bin dir, it's possible to exctract the full path with the following command :

[pene@donunix] which bin/prg | xargs dirname

No comments: