I'm looking at the -f
flag on man which is described as:
-f, --whatis
Equivalent to whatis. Display a short description from the manual page, if available. See whatis(1) for details.
When I actually use -f
entries always have a bracket at the end and sometimes you get multiple entries.
Examples of man -f
results:
man -f grep
:
grep (1) - print lines matching a pattern
man -f man
:
man (7) - macros to format man pages
man (1) - an interface to the on-line reference manuals
man -f git
:
Git (3pm) - Perl interface to the Git version control system
git (1) - the stupid content tracker
I'm guessing all normal program descriptions are shown with (1)
.
Can anyone explain what other lists are being searched and how to identify what different numbers mean within the parenthesis?
Note: I also noticed that for git I can get the (3pm) manual page by doing man Git
instead of man git
. It seems counter-intuitive that man git
would include the manual on git
but not Git
where as man -f git
returns info on both.
man -f
you are asking for information on any pages that are relevant togit
, not just the manpage for the command linegit
itself. – user4556274 Apr 17 '17 at 17:30