Find standard binary and manual-page candidates for passwd.
Which command is appropriate?
whereis searches standard locations for a command's binary, source, and manual files.
Detailed explanation
which passwdIncorrect. which reports a PATH executable but not the manual-page candidates.
type passwdIncorrect. type reports shell resolution rather than standard manual locations.
whereis passwdCorrect. whereis passwd reports binary and manual candidates.
updatedb passwdIncorrect. updatedb rebuilds locate data and does not perform this lookup.
Try it yourself
An example you can run in a temporary verification environment.
whereis passwdExpected result
passwd:に続きバイナリやmanページの候補パスKey points
- whereis finds binary/source/man
- which searches PATH
- type reports shell resolution
Notes
- Environment: Linux / util-linux whereis / 読み取りのみ
- Use read-only lookups or disposable paths when verifying search behavior.
- Distribution-specific defaults should be checked before changing system configuration.
Foundation review
Place the operation
whereis provides a conventional, multi-kind lookup; it does not perform an unrestricted substring search.
Check the side effect
Treat each returned path as a candidate and verify that it exists on the current host.