The Full Wiki

More info on Which (Unix)

Which (Unix): Wikis


Note: Many of our articles have direct quotes from sources you can cite, within the Wikipedia article! This article doesn't yet, but we're working on it! See more info or our list of citable articles.


(Redirected to which (Unix) article)

From Wikipedia, the free encyclopedia

which is a Unix command used to identify the location of executables.

which takes one or more arguments; for each of these arguments, it prints to stdout the full path of the executable that would have been executed if this argument had been entered at the shell prompt. It does this by searching for an executable or script in the directories listed in the environment variable PATH.[1] which is a common command on most Unix-like computers, and is also available for Microsoft Windows.[2]


  1. ^ which man page
  2. ^ which for Windows from the GnuWin32 project

External links



Got something to say? Make a comment.
Your name
Your email address