9

I need locate program file in user's PATH. I found few solution, the best are command and type.

Which is better, faster, UNIX-like way and why?

command -v <application>
type -p <application>
asked Aug 16, 2014 at 9:15
3

1 Answer 1

11

The variant command -v is the defined in the POSIX standard,
so it is exactly the "UNIX-like way to do it".

For the standard, see POSIX - Shell & Utilities - command

For all the details, and still much more details: Why not use "which"? What to use then?

answered Aug 16, 2014 at 17:19

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.