man
the manual, built inman shows the reference manual for nearly every command on the system. It is installed with the command and matches the exact version you have — which a web search does not guarantee. It opens in less, so / searches and q quits.
Not sure what a switch does? man command, then /-x to jump to it.
At the terminal
Read the session first, then the notes: each numbered line in the output is answered by the note with the same number.
What the numbered lines are telling you
The (1) is the section. Section 1 is user commands, 5 is file formats, 8 is administration commands.
How the command is written. Square brackets mark optional parts, and three dots mean "one or more".
-k looks through the one-line descriptions of every page — for when you know the task but not the name.
passwd is both a command and a file. man 5 passwd opens the page describing the format of /etc/passwd.
Switches
A switch changes how the command behaves. These are the ones used day to day; man man lists the rest. Single-letter switches can usually be joined, so -l -a may be written -la.
-k WORD- Search the descriptions of all pages for a word.
-f NAME- List the sections that have a page of this name.
NUM- A section number before the name: man 5 passwd.
-a- Show every matching page, one after another.
Variations worth knowing
The same tool, pointed at a narrower question. These four cover most of what it is reached for day to day.
ls --helpA short summary of options, printed straight to the terminal.
whatis tarPrints just the one-line description.
man -f printfLists every section that has a page of that name.
tldr tarPractical examples rather than a full reference — a separate package.
In cybersecurity
Reading the manual is how you find out what a pasted command will really do.
A command copied from a forum may contain an option you would not have chosen. Thirty seconds in the manual is cheaper than the mistake.
Options differ between versions and between Linux and macOS. man describes the program actually installed.
Many pages have a section on security considerations — ssh, sudo and tar among them. It is where the sharp edges are documented.