Manpages
Using manpages
Ever wonder if "man" has a man page? Ever stare deep into man's soul? Now you don't have to type "man man" to see man's deepest features.
This document is derived mostly from man man and its references.
Viewing all related man pages
Use man <manpage> -wa to see all manpages that would be opened
Another option: man -aW man | xargs ls -l
- See what manpage files would be opened
man -w <manpage>orman --path <manpage>- Supposedly
-Wgives one per line with no description
- Supposedly
- Use
man <manpage> -ato sequentially view all manpages with the given title
man checks $PATH for manpages
If an application is on $PATH, man finds it on system path.
- Specify folders:
man man -M /usr/share/man:/usr/local/share/man- Can search and open local manpages this way
- Or specify MANPATH in your man config.`
Configuration
Check out $ man man.conf for config file details
-
man -C config_file: Specify a configuration file- Default is
/private/etc/man.conf
- Default is
-
See also:
roff,groff,nroff,troff,ditroff
Using a custom 'Pager'
This is probably best set in either $PAGER or $MANPAGER in .bashrc
- default pager:
/usr/bin/less -is - override:
man man -P "/usr/bin/less -Nis- gives you line numbers
- overrides
MANPAGERenvironment variableMANPAGERoverridesPAGERenvironment variable- Consider setting this in
.bashrc
Supporting and Coordinating Applications
man -k <string>- same asapropos- likely
man -kis the most convenient method, "equivalent to apropos" apropos- search thewhatis databasefor "strings".
- likely
man -f <complete keyword>- same aswhatiswhatis- search thewhatis databasefor "complete keywords".- only displays complete word matches
- the
whatis databaseis created with the command/usr/libexec/makewhatis
man -K <something>- Search for a specified string in all man pages.
- Continues search even after you say 'y' and open a manpage
- still pretty slow, tested with
man -K vimtutor