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.
Incorrect. which reports a PATH executable but not the manual-page candidates.
type passwdIncorrect. type reports shell resolution rather than standard manual locations.
Incorrect. type reports shell resolution rather than standard manual locations.
whereis passwdCorrect. whereis passwd reports binary and manual candidates.
Correct. whereis passwd reports binary and manual candidates.
updatedb passwdIncorrect. updatedb rebuilds locate data and does not perform this lookup.
Incorrect. 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 / 読み取りのみ
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.