man Flashcards
man
![](https://s3.amazonaws.com/brainscape-prod/system/cm/313/275/933/q_image_thumb.png?1591304084)
man is the system’s manual pager.
![](https://s3.amazonaws.com/brainscape-prod/system/cm/313/275/933/a_image_thumb.png?1591304094)
Section Numbers Of The Manual
1
2
3
4
5
6
7
8
9
1 Executable programs or shell commands
2 System calls (functions provided by the kernel)
3 Library calls (functions within program libraries)
4 Special files (usually found in /dev)
5 File formats and conventions eg /etc/passwd
6 Games
7 Miscellaneous (including macro packages and conventions)
8 System administration commands (usually only for root)
9 Kernel routines [Non standard]
man
- f
- k
- K
- f, –whatis, Equivalent to whatis. Dispay a short description from man page if available.
- k, –apropos, Equivalent to apropos. Search the short manual page descriptions for keywords and display matches.
- K, –global-apropos, Search for text in all manual pages. This is a brute-force search and will take time.
man
- w
- W
- w, –where, –path, –location, Don’t display the manual pages, but print the locations of the source nroff files that would be formatted.
- W, –where-cat, –location-cat, Don’t display the manual pages, but print the locations of the cat files that would be displayed.
man
- S
- i
- I
- a
- S list, -s list, –sections=list, List is a colon or comma-separated list of ‘order specific’ manual sections to search.
- i, –ignore-case, Ignore case when searching for manual pages. This is the default.
- I, –match-case, Search for manual pages case-sensitively.
- a, –all, By default, man will exit after displaying the most suitale manual page it finds. With this option it forces man to display all the manual pages with names that match the search.
man ls
Displays the manual page for ls.
man man.7
Displays the manual page for macro page man from section 7.
man -a intro
Displays in succession, all of the available intro man pages.
man -k printf
Search the short descriptions and manual page names for the keyword printf and print any matches.
man -f smail
Lookup the manual pages references by smail and print out the short descriptions of any found.