LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Search in man pages (https://www.linuxquestions.org/questions/linux-general-1/search-in-man-pages-813300/)

CartmanYO 06-10-2010 05:01 AM

Search in man pages
 
Hello! The question is about searching in linux man pages. Identifier could be found in current man page by "/" command. Is it possible to jump between found occurrences?

druuna 06-10-2010 05:03 AM

Hi,

Jumps as in forward and backward between 2 found entries?

If so, not to my knowledge. Disregard, it is possible....

syg00 06-10-2010 05:33 AM

"man less" - it is typically the pager for man.

CartmanYO 06-10-2010 05:55 AM

Yea, i mean jumping between found entries forward and backward, cuz it's quite annoying to scroll long page and look for entries.

syg00 06-10-2010 05:56 AM

I know what you mean - read and learn.

CartmanYO 06-10-2010 06:02 AM

Thx, syg00. I'm reading right now. That was the answer for druuna

GrapefruiTgirl 06-10-2010 06:05 AM

In case it helps any, something I did not do for the longest time but have since learned to do, is on long man pages (such as the Bash man page) to pay attention & try to remember to the line numbers whereabouts the information you often want on a given page, is located. You can see the line numbers in the bottom left corners of the man pages.

I know this doesn't help you 'jump' right to a section you want, but it sure is easier & faster to hold "PageDown" or whatever and zoom up/down quickly until you are at the lines you want, than to keep keying up/down a page at a time trying to get to where it was.

Sasha

PS - Ehh, not sure if I understand the question correctly now, having read the new reply above :scratch: -- but if we haven't got the point understood right, just rephrase the question -- we'll get it eventually :)

CartmanYO 06-10-2010 06:56 AM

Thanks everyone for advices. After searching with "/pattern" command, clicking "n" allows to jump between found entries.

syg00 06-10-2010 06:58 AM

Try "?" as well ... ;)

GrapefruiTgirl 06-10-2010 07:01 AM

Quote:

Originally Posted by CartmanYO (Post 3998843)
Thanks everyone for advices. After searching with "/pattern" command, clicking "n" allows to jump between found entries.

Well I'll be! I didn't know that -- thanks for posting it :)

Sasha

CartmanYO 06-10-2010 07:15 AM

You're welcome =)

MTK358 06-10-2010 07:17 AM

The man viewer is very similar to the vi editor.

search forward: /pattern
search backward: ?pattern
next: n
previous: N

chrism01 06-10-2010 09:11 PM

I just use this http://linux.die.net/man/, unless the 'net is unavailable.

MTK358 06-11-2010 07:13 AM

Quote:

Originally Posted by chrism01 (Post 3999650)
I just use this http://linux.die.net/man/, unless the 'net is unavailable.

Check out man's -T option.


All times are GMT -5. The time now is 03:35 PM.