Help yourself in man pages

September 17th, 2007 mysurface Posted in Common, man | Hits: 41331 | 2 Comments »

To know more about a command, check for more options and maybe some examples how to use it, you need to read the manual of the specified command. To access the man page of particular command is easy, just do the line below.

Let say I wanna access curl man page.

man  curl

Or you can search for a keyword from all man pages you have.

apropos curl

But, this is not only what you can do. While you are in man, you can trigger search by specified a keyword. Man provides efficient browsing like in vim, you can bookmark a point and jump back to that point later, and a lots more.

Browsing

With arrow key and PgUp and PgDn, you can navigate the man page easily, pressing g lead you to the first line of the page and pressing shift G brings you to the last line.

Search
If you are vim user, the search act exactly the same in man. Press / follow by keyword. To jump to next point of keyword, press n, to jump back previous search point press shift N.

Bookmark
To mark down a location, press m follow by a letter, for example

ma

To jump back to the marking point, press follow by the specified letter.

'a

There are a lots of more function man can provide you, press h for help.

2 Responses to “Help yourself in man pages”

  1. [...] Help yourself in man pages [...]

  2. You made some good points there. I did a search on the topic and found nearly all people will have the same opinion with your blog.

Leave a Reply