Software:which (Unix)

From HandWiki

In computing, which is a command in Unix and Unix-like operating systems used to identify the location of executables. The command is also available in the AROS shell.[1]

The functionality of the which command is similar to some implementations of the type command. POSIX specifies a command named command that also covers this functionality.[2]

Implementations

Unix, Unix-like

The command takes one or more arguments; for each of these arguments, it prints the full path of the executable to stdout that would have been executed if this argument had been entered into the shell. It does this by searching for an executable or script in the directories listed in the environment variable PATH.[3] The which command is part of most Unix-like computers. It is also part of the C Shell.[2]

Microsoft Windows, MS-DOS

The command is available as a separate package for Microsoft Windows.[4] Windows also includes the similar where.exe command. The same functionality is available in MS-DOS, but not Windows, as the built-in TRUENAME command.

References

External links