LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 12-15-2010, 07:41 AM   #1
hindi
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Rep: Reputation: 0
how to browse linux man by section?


how to browse linux man by section?
 
Old 12-15-2010, 07:42 AM   #2
GrapefruiTgirl
LQ Guru
 
Registered: Dec 2006
Location: underground
Distribution: Slackware64
Posts: 7,594

Rep: Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556Reputation: 556
This is a great way here, if you have internet access: http://linux.die.net/man/

For local copies, I am not sure, but if there's a way to browse by section on the local machine, I'll be interested to know it too. :-)
 
Old 12-15-2010, 07:49 AM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,299
Blog Entries: 61

Rep: Reputation: Disabled
If you're using KDE, open Help, and scroll right down. All the man pages are available sorted by section.

Last edited by brianL; 07-31-2014 at 03:22 PM.
 
Old 12-15-2010, 08:30 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983Reputation: 1983
From the command line one way might be to parse the whatis database, looking for a specific section. Example for section 1 man pages:
Code:
grep '(1)' /var/cache/man/whatis
Please note that not all the linux systems provide a whatis database by default. However you can always create it using the makewhatis command (as root).

You can also create a function to list all the man pages, passing the section number as argument, e.g.
Code:
function manls () {
  grep "($1)" /var/cache/man/whatis
}
Checks on the correctness of the argument can be added, as well.
 
Old 12-15-2010, 08:42 AM   #5
hindi
LQ Newbie
 
Registered: Jul 2008
Posts: 2

Original Poster
Rep: Reputation: 0
is there any command or man option to do it in the terminal
 
Old 12-15-2010, 12:00 PM   #6
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,845

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
If your distro has xman, just type that in a terminal. Click on Manual Page to get started. Once you open a page to view, double-click on an entry to get its info. This is good for just plain exploring.
 
Old 12-16-2010, 04:57 PM   #7
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
@ hindi

Some commands will have more than one section -- eg. crontab

When you view a manpage, it will list other relevant man pages for the command

An excerpt from man crontab

SEE A
crontab(5), cron(8)

To see those man sections, you would type

man 5 crontab
man 8 cron
 
Old 05-09-2013, 07:07 AM   #8
äxl
Member
 
Registered: Feb 2013
Location: Germany, EU
Distribution: Debian (stable release)
Posts: 67

Rep: Reputation: 10
Sorry for digging this up.
http://shallowsky.com/linux/debnotes.html
"mandb -c does what makewhatis does in other distros and other Unices -- builds the whatis/apropos databases. It's part of the man-db package."

I also couldn't get xman to work at first but it's usually part of every Xserver in x11-apps. Just type xman and browse the man pages.

Gnome Help Browser is called yelp. Looks more neat but has some dependencies.
 
Old 05-09-2013, 05:07 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Maybe use "info" instead. Quite often has more info (sorry .... ), and has all the navigation you'll likely want.
 
Old 05-09-2013, 09:43 PM   #10
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,349
Blog Entries: 28

Rep: Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147Reputation: 6147
I am fond of the apropos command to investigate man pages.

For example (this is on Debian Wheezy):

Code:
~$ apropos directories
addgnupghome (8)     - Create .gnupg home directories
cp (1)               - copy files and directories
dh_bugfiles (1)      - install bug reporting customization files into package...
dh_clean (1)         - clean up package build directories
dh_compress (1)      - compress files and fix symlinks in package build direc...
dh_fixperms (1)      - fix permissions of files in package build directories
dh_install (1)       - install files into package build directories
dh_installchangelogs (1) - install changelogs into package build directories
dh_installdebconf (1) - install files used by debconf in package build direct...
. . . and so on.
See man apropos for details.

Last edited by frankbell; 05-09-2013 at 09:44 PM. Reason: More detail
 
1 members found this post helpful.
  


Reply



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
Man Pages Section 9 Kernel, in Repositories? jhwilliams Linux - Kernel 1 04-04-2010 07:21 PM
How to make man display all topics for a section? sunman Slackware 6 07-25-2008 11:12 PM
waht file have paths for man? man.conf? where? xcore_on Linux - Newbie 4 05-23-2006 09:38 AM
man "New Commands" Section Broken? tortle LQ Suggestions & Feedback 3 12-05-2004 11:59 AM
Compiling packages on RH 7.1 causes man files to be named man.gz mmboam Linux - General 0 05-09-2001 06:47 PM

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

All times are GMT -5. The time now is 06:47 PM.

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