The command name is unknown.
Search manual-page names and short descriptions for the term password.
Which command is correct?
man -k searches the manual database by name and short description. It is useful when the function is known but the command name is not.
Detailed explanation
man passwordIncorrect. man password opens a page named password rather than searching descriptions.
Incorrect. man password opens a page named password rather than searching descriptions.
man -f passwordIncorrect. -f looks up an exact command name and its one-line description.
Incorrect. -f looks up an exact command name and its one-line description.
man -k passwordCorrect. -k searches names and descriptions for the keyword.
Correct. -k searches names and descriptions for the keyword.
which passwordIncorrect. which searches executable paths and does not search manual descriptions.
Incorrect. which searches executable paths and does not search manual descriptions.
Try it yourself
An example you can run in a temporary verification environment.
man -k password | headExpected result
passwordを名前または短い説明に含むマニュアル候補Key points
- man -k
- man -f
- Difference from PATH lookup
Notes
- Environment: man-db 2.11以降(データベース構築済み)
- 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.