man-pages/man1/which.1.html
2021-03-31 01:06:50 +01:00

71 lines
1.6 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of WHICH</TITLE>
</HEAD><BODY>
<H1>WHICH</H1>
Section: User Commands (1)<BR>Updated: 29 Jun 2016<BR><A HREF="#index">Index</A>
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>
which - locate a command
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>
which [-a] filename ...
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>
<B>which</B>
returns the pathnames of the files (or links) which would be executed
in the current environment, had its arguments been given as commands
in a strictly POSIX-conformant shell. It does this by searching the
PATH for executable files matching the names of the arguments. It does
not canonicalize path names.
<A NAME="lbAE">&nbsp;</A>
<H2>OPTIONS</H2>
<DL COMPACT>
<DT id="1"><B>-a</B>
<DD>
print all matching pathnames of each argument
</DL>
<A NAME="lbAF">&nbsp;</A>
<H2>EXIT STATUS</H2>
<DL COMPACT>
<DT id="2"><B>0</B>
<DD>
if all specified commands are found and executable
<DT id="3"><B>1</B>
<DD>
if one or more specified commands is nonexistent or not executable
<DT id="4"><B>2</B>
<DD>
if an invalid option is specified
<P>
</DL>
<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT id="5"><A HREF="#lbAB">NAME</A><DD>
<DT id="6"><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT id="7"><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT id="8"><A HREF="#lbAE">OPTIONS</A><DD>
<DT id="9"><A HREF="#lbAF">EXIT STATUS</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 00:05:29 GMT, March 31, 2021
</BODY>
</HTML>