The tag has no usage guidance.

learn more… | top users | synonyms

28
votes
3answers
12k views

What is Windows' equivalent of the “which” command in Unix? Is there an equivalent PowerShell command?

In Linux, we have the "which" command to find out the path of an executable. What is its Windows equivalent? Is there any PowerShell command for doing that?
50
votes
4answers
15k views

which/whereis differences

What's the difference between which and whereis ?
33
votes
4answers
10k views

Powershell equivalent to unix `which` command?

Does powershell have an equivalent to the which command found in most (if not all) unix shells? There are a number of times I'd like to know the location of something I'm running from the command ...
1
vote
1answer
2k views

'which' equivalent in Windows [duplicate]

Possible Duplicate: Windows equivalent of whereis? For Linux/Mac I can use which to locate the file. What would be the equivalent to this command line tool of which?
7
votes
3answers
1k views

`which python` points to the python I want, but `python` runs the wrong version

I want to use python24 provided by ports, so I've installed it, and python_select -s shows that the version I want is indeed selected. Running which python gives /opt/local/bin/python, and running /...
2
votes
1answer
366 views

Accurate Windows equivalent of the Unix which(1) command [duplicate]

Possible Duplicate: Windows equivalent of whereis? It's easy enough to write a simple script that works like the which(1) command from unix, which searches for a given command along the PATH. ...