WHICH(1) BSD General Commands Manual WHICH(1)NAME
which -- locate a program file in the user's path
SYNOPSIS
which [-as] program ...
DESCRIPTION
The which utility takes a list of command names and searches the path for each executable file that would be run had these commands actually
been invoked.
The following options are available:
-a List all instances of executables found (instead of just the first one of each).
-s No output, just return 0 if all of the executables are found, or 1 if some were not found.
Some shells may provide a builtin which command which is similar or identical to this utility. Consult the builtin(1) manual page.
SEE ALSO builtin(1), csh(1), find(1), locate(1), whereis(1)HISTORY
The which command first appeared in FreeBSD 2.1.
AUTHORS
The which utility was originally written in Perl and was contributed by Wolfram Schneider <wosch@FreeBSD.org>. The current version of which
was rewritten in C by Daniel Papasian <dpapasia@andrew.cmu.edu>.
BSD December 13, 2006 BSD
Check Out this Related Man Page
WHICH(1) BSD General Commands Manual WHICH(1)NAME
which -- locate a program file in the user's path
SYNOPSIS
which [-as] program ...
DESCRIPTION
The which utility takes a list of command names and searches the path for each executable file that would be run had these commands actually
been invoked.
The following options are available:
-a List all instances of executables found (instead of just the first one of each).
-s No output, just return 0 if any of the executables are found, or 1 if none are found.
Some shells may provide a builtin which command which is similar or identical to this utility. Consult the builtin(1) manual page.
SEE ALSO builtin(1), csh(1), find(1), locate(1), whereis(1)HISTORY
The which command first appeared in FreeBSD 2.1.
AUTHORS
The which utility was originally written in Perl and was contributed by Wolfram Schneider <wosch@FreeBSD.org>. The current version of which
was rewritten in C by Daniel Papasian <dpapasia@andrew.cmu.edu>.
BSD June 21, 2002 BSD
Hi All,
I have did a search in the whole forum about Find, but get too many results, so I hope my message not annoying anyone.
How do I do a find for a specific file in the whole machine?
I am hoping for something like this.
find . -name
thanks (11 Replies)
I want to run the 'locate' command and then remove what the command finds.
My guess was, locate blahblah |rm -f
but this does not work.
Thanks! (3 Replies)
Hi there,
My question is:
If the command cc is executed on obelix, what executable file will be run? Using the results of whereis, which and any other commands you consider necessary, explain why this file is executed.
Please help as soon as possible
thanks (5 Replies)
Hi,
when I run ls -l I get the following command (I already know ls) :
Code:
rwxrwxrwx 2 andrew andrew 4096 2010-01-25 22:00 test.txt
rwxrwxrwx 2 andrew andrew 4096 2010-01-25 21:01 test1.txt
rwxrwxrwx 3 andrew andrew 4096 2010-01-25 20:45 test2.txt
rwxrwxrwx 1 andrew andrew 4096... (1 Reply)
I am looking to create some ksh93 extensions using the custom builtin feature.
I can successfully create a builtin function, load it using the builtin -f command and get an output. However, I want to get/set values of KSH variables from within my built-in.
For example, lets say I am creating... (2 Replies)
Hi all,
1). Is is possible to use the date builtin and subtract a literal e.g 1 day in bash alongwith the find command from the command line:
e.g
find . -name --date %Y-%m-%d - 1
2). I want to search for files in the pwd but not search any subdirectories and exclude any hidden files... (2 Replies)
I'm looking for some suggestions on a command line utility I am making. I would like to use 'find' to locate some files and index the results so the user can choose the correct results from the list and push that input into an open command. A simple example below:
... (2 Replies)