2018-10-27 01:08:38 +01:00
|
|
|
# whereis
|
|
|
|
|
|
|
|
> Locate the binary, source, and manual page files for a command.
|
|
|
|
|
|
|
|
- Locate binary, source and man pages for ssh:
|
|
|
|
|
|
|
|
`whereis {{ssh}}`
|
2019-01-28 18:33:52 +00:00
|
|
|
|
|
|
|
- Locate binary and man pages for ls:
|
|
|
|
|
|
|
|
`whereis -bm {{ls}}`
|
|
|
|
|
2021-01-07 14:06:38 +00:00
|
|
|
- Locate source of gcc and man pages for Git:
|
2019-01-28 18:33:52 +00:00
|
|
|
|
|
|
|
`whereis -s {{gcc}} -m {{git}}`
|
|
|
|
|
2021-01-31 17:05:18 +00:00
|
|
|
- Locate binaries for gcc in `/usr/bin/` only:
|
2019-01-28 18:33:52 +00:00
|
|
|
|
|
|
|
`whereis -b -B {{/usr/bin/}} -f {{gcc}}`
|