Does anyone have any tricks and tips for finding information in man pages?
|
Pay attention to the section number: Suppose you want help on If what you are looking for is the format of printf with all % codes and it doesn't appear on printf man page, you can jump to related man pages listed under SEE ALSO paragraph. You may find something like If you are annoyed that If you don't know where to start, type Sections are well defined:
Last but not least: information delivered in man pages is not redundant, so read carefully from beginning to end for increasing your chances to find what you need. |
|||||
|
|
Type slash |
||||
|
|
This will give you a list of all man pages which relate to 'search'. |
||||
|
|
|
The |
|||||||||
|
|
Always check out what's in the SEE ALSO section. Frequently I find other useful commands or functions that way. |
||||
|
|
|
If you're more comfortable with your editor than you are with the default pager, you can set MANPAGER in your environment. For example, I have this line in my ~/.bashrc: export MANPAGER="col -b | vim -c 'set ft=man nomod nolist ignorecase' -" |
||||
|
|
|
As @Steven D says, don't forget the In addition, don't be intimidated by the
This way, I can navigate the |
||||
|
|
|
Don't ignore the Also, if you are an emacs user, don't forget you can read info and manual pages without leaving your editor: |
||||
|
|
|
The default pager for reading a man page is In particular:
|
||||
|
|
|
I suppose, using most pager is a good idea. This pager is very powerful, but the main feature for me - displaying colored man-pages. This feature improves perception of plain text and eases searching of needed information. Look at the attached screenshot, text looks very nice, isn't it?
|
||||
|
|
|
From Kristof answer, if you (i.e.) type On UNIX you can try:
On Linux you should change |
||||
|
|
|
Most of us set the PATH variable. This will show you how to automatically make the man search path match your command search PATH. Say you append your path to include your personal, work-specific and locally-installed utilities, like To resolve this, I use the
Some systems (Like Apple Leopard) set the MANPATH automatically, but that means that your system will use the MANPATH variable instead of using
|
||||
|
|
|
Similar to but slightly different from Rob Hoelz's answer, Add the following in your
Now |
||||
|
|
|
For those longer, more complex man pages I find it much easier to read them away from a computer (odd, I know) and so I have these functions in my
|
||||
|
|
|
View man pages in a user-friendly graphical application:
For the top-level table of contents:
Features:
|
||||
|
|
If you're looking for information regarding a |
||||
|
|
|
In Linux
very useful when you don't know where to search. |
||||
|
|
