Which (Unix)
From Wikipedia, the free encyclopedia
which is a Unix command used to identify the location of executables.
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.[1] The which command is part of most Unix-like computers. It is also part of the C Shell,[2] and is available as a separate package for Microsoft Windows[3] or use the similar where.exe
.
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]
References
- ↑
which
man page - ↑ 2.0 2.1 "Command", The Open group base specification, Issue 7, IEEE std 1003.1-2008
- ↑
which
for Windows from the GnuWin32 project
External links
|
This article is issued from Wikipedia. The text is available under the Creative Commons Attribution/Share Alike; additional terms may apply for the media files.