which.1 (806B)
- .\" utils-std: Collection of commonly available Unix tools
- .\" Copyright 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
- .\" SPDX-License-Identifier: MPL-2.0
- .Dd 2024-05-29
- .Dt WHICH 1
- .Os
- .Sh NAME
- .Nm which
- .Nd locate executable within PATH
- .Sh SYNOPSIS
- .Nm
- .Op Fl as
- .Ar name...
- .Sh DESCRIPTION
- The
- .Nm
- utility scans
- .Ev PATH
- for each given executable
- .Ar name .
- .Pp
- .Nm
- shall not be used when the standard
- .Xr sh 1
- builtin
- .Cm command
- .Fl v
- .Ar name
- can be used instead.
- .Sh OPTIONS
- .Bl -tag -width _a
- .It Fl a
- List all matching executables.
- .It Fl s
- Do not print executable names.
- .El
- .Sh EXIT STATUS
- .Ex -std
- .Sh HISTORY
- A
- .Nm
- command first appeared in
- .Bx 3.0 .
- .Pp
- The
- .Fl a
- option first appeared in
- .Ox 2.3 .
- .Sh AUTHORS
- .An Haelwenn (lanodan) Monnier Aq Mt contact+utils@hacktivis.me