LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-10-2010, 05:01 AM   #1
CartmanYO
LQ Newbie
 
Registered: Jun 2009
Posts: 27

Rep: Reputation: 1
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?
 
Old 06-10-2010, 05:03 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Jumps as in forward and backward between 2 found entries?

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

Last edited by druuna; 06-10-2010 at 07:18 AM. Reason: Updated to reflect correct answer.
 
Old 06-10-2010, 05:33 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
"man less" - it is typically the pager for man.
 
1 members found this post helpful.
Old 06-10-2010, 05:55 AM   #4
CartmanYO
LQ Newbie
 
Registered: Jun 2009
Posts: 27

Original Poster
Rep: Reputation: 1
Yea, i mean jumping between found entries forward and backward, cuz it's quite annoying to scroll long page and look for entries.
 
Old 06-10-2010, 05:56 AM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I know what you mean - read and learn.
 
Old 06-10-2010, 06:02 AM   #6
CartmanYO
LQ Newbie
 
Registered: Jun 2009
Posts: 27

Original Poster
Rep: Reputation: 1
Thx, syg00. I'm reading right now. That was the answer for druuna
 
Old 06-10-2010, 06:05 AM   #7
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
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 -- but if we haven't got the point understood right, just rephrase the question -- we'll get it eventually

Last edited by GrapefruiTgirl; 06-10-2010 at 06:07 AM.
 
Old 06-10-2010, 06:56 AM   #8
CartmanYO
LQ Newbie
 
Registered: Jun 2009
Posts: 27

Original Poster
Rep: Reputation: 1
Thanks everyone for advices. After searching with "/pattern" command, clicking "n" allows to jump between found entries.
 
1 members found this post helpful.
Old 06-10-2010, 06:58 AM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Try "?" as well ...
 
Old 06-10-2010, 07:01 AM   #10
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
Quote:
Originally Posted by CartmanYO View Post
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
 
Old 06-10-2010, 07:15 AM   #11
CartmanYO
LQ Newbie
 
Registered: Jun 2009
Posts: 27

Original Poster
Rep: Reputation: 1
You're welcome =)
 
Old 06-10-2010, 07:17 AM   #12
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
The man viewer is very similar to the vi editor.

search forward: /pattern
search backward: ?pattern
next: n
previous: N
 
1 members found this post helpful.
Old 06-10-2010, 09:11 PM   #13
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,355

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
I just use this http://linux.die.net/man/, unless the 'net is unavailable.
 
Old 06-11-2010, 07:13 AM   #14
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Quote:
Originally Posted by chrism01 View Post
I just use this http://linux.die.net/man/, unless the 'net is unavailable.
Check out man's -T option.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to search man pages parnal88 Linux - Newbie 7 05-05-2010 11:43 PM
Search the 'man' pages mr tim esquire Linux - Newbie 6 07-28-2008 10:37 PM
To Get Man Pages muhammednavas Linux - Software 2 12-02-2006 09:07 AM
Search all man pages for a phrase suguru Linux - Software 1 09-12-2004 06:38 AM
can't see man pages Elbolton Linux - Newbie 5 03-06-2002 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:34 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration