The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
40 views

How to install 'which' command on mac

I have removed "which" command from /bin directory. when i try to install it via Homebrew package manager, i get Error: No available formula for which
0
votes
1answer
155 views

bypass 'noglob' for 'which' in zsh?

I want to use the 'which' command to see which executable is actually being invoked, but the defensive 'noglob' aliases keep getting in the way. Is there a shortcut that I can use to find which ...
2
votes
1answer
210 views

“which rails” works.. but “rails --version” doesn't.. how come?

This may be related to what i did here.. but when I type the command which rails I get /usr/bin/rails but when i type rails --version I get: ...
0
votes
2answers
66 views

Can I use `which` command for partial match?

I want to find all programs with name like "gcc", "gcc-4.2", "gcc-4.9" and so on. To find all binaries I tried with which -a gcc*. But "*" is not recognized as 'any' with which command. Is there ...
1
vote
1answer
97 views

How to change the path that comes with the output of which command?

When I which mex at the linux system it gives a path but I want to change this path to another one. How can I set this default path to another location ?
1
vote
1answer
264 views

Which device should I adjust DNS server settings on, receiver or LAN card on motherboard?

I use ATT Uverse with a 12Mbps down and stinky 1.5Mbps up. My question is as follows: I realized remembered recently that ever since I purchased a new computer and network receiver, I never adjusted ...
3
votes
2answers
415 views

Linux: find first result from specified search path

If I have a colon-separated path list, much like $PATH, but not neccessarily $PATH. I want to search that list for a specific file name. However, I only want the first matching path. I have ...
1
vote
1answer
45 views

Why is which not matching the effect I get?

I cannot explain the following behavior: [centos4x64 ~] /usr/local/bin/gmake --version GNU Make 3.82 Built for x86_64-unknown-linux-gnu Copyright (C) 2010 Free Software Foundation, Inc. License ...
8
votes
1answer
3k views

“whereis” and “which” return different paths in Mac OS X

I've got the default OpenSSL 9.8 (Mac OS X 10.6.8) and decided to install the newest version (1.0.1) via MacPorts (sudo port install openssl). These are console output of which and whereis commands: ...
3
votes
2answers
805 views

How can I “which <binary>” in cmd.exe

Is there a way to quickly determine where a binary (that the %PATH% variable points to) is located. That is something that would do the equivalent of which perl in a traditional unix shell. I ...
1
vote
2answers
402 views

“which” Program Requires Shell Refresh to See Newly Installed Programs?

Why does the Linux program which require you to refresh the shell (e.g. type tcsh in the terminal) to see new programs installed in your path?? I was baffled why I couldn't access a program, which ...
2
votes
3answers
1k views

How do I change the default version of a unix executable?

I currently have two versions of the same executable installed on my OSX machine: one sits in usr/bin, and the other is a Macports installation. When I run which, the terminal returns the location to ...
5
votes
2answers
52 views

Bash path acting oddly

I am trying to run openscad from the command line and it throws an error, but if I type out the whole path reported by which it seems to work as shown below. [dataproc@Euclid ~]$ which openscad ...
16
votes
3answers
6k 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?
7
votes
4answers
4k views

in Windows command line: How to know the path of a command?

I have some program in many places (it is the java command).. I am starting this command from CMD. the problem is, I need to know exactly the path of the java command being run.. (If you know unix, I ...
1
vote
1answer
1k 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?
0
votes
4answers
474 views

“which” for Windows [duplicate]

Possible Duplicate: Windows equivalent of whereis? I'm used to saying "which foo" on Unix systems to see what's going to run. Today I'm having trouble with a program on Windows, and I ...
2
votes
1answer
317 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 ...
2
votes
6answers
2k views

(Unix/Linux) How to execute different commands with same name?

I have a two seperate files on my computer, which execfile /usr/local/bin/ /usr/bin/ so, i have two files with the same name in two different directories. How can I specify exactly which command ...
1
vote
3answers
625 views

The 'which' command returns nothing via cron, but works via console

I've written a little utility in haXe + Neko that needs to execute some GIT commands. To avoid hardcoding the path to the GIT executable I'd like to use the which command to find out where it is. ...
8
votes
3answers
829 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 ...
22
votes
4answers
8k views

which/whereis differences

What's the difference between which and whereis ?
19
votes
4answers
6k 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 ...