mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
19 lines
446 B
Plaintext
19 lines
446 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# which
|
|
|
|
> Locate a program in the user's `$PATH`.
|
|
> See also: `whereis`, `type`.
|
|
> More information: <https://manned.org/which>.
|
|
|
|
- Search the `$PATH` environment variable and display the location of any matching executables:
|
|
|
|
`which {{executable}}`
|
|
|
|
- If there are multiple executables which match, display all:
|
|
|
|
`which {{[-a|--all]}} {{executable}}`
|