LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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-09-2003, 08:08 PM   #1
downinthemine
Member
 
Registered: Jul 2003
Location: Silver Spring, MD
Distribution: Xubuntu
Posts: 167

Rep: Reputation: 30
Parens after commands


What does the number in parenthesis after a command mean, e.g. rpmbuild(8) or ls(1).
 
Old 12-09-2003, 08:20 PM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
From the man manpage:
Code:
The table below shows the section numbers of the manual followed by the types of pages they contain.

1	Executable programs or shell commands
2	System calls (functions provided by the kernel)
3	Library calls (functions within system libraries)
4	Special files (usually found in /dev)
5	File formats and conventions eg /etc/passwd
6	Games
7	Macro packages and conventions eg man(7), groff(7).
8	System administration commands (usually only for root)
9	Kernel routines [Non standard]
Hope that helps!

Håkan
 
Old 12-09-2003, 08:30 PM   #3
downinthemine
Member
 
Registered: Jul 2003
Location: Silver Spring, MD
Distribution: Xubuntu
Posts: 167

Original Poster
Rep: Reputation: 30
Thanks. It never occured to me to man man.
 
Old 05-26-2004, 01:53 PM   #4
Charlie Spencer
Member
 
Registered: Nov 2003
Location: South Carolina, USA
Distribution: Fedora Core 5
Posts: 106

Rep: Reputation: 15
I'm posting to this older question in hopes I can revive it. I don't understand the excerpt posted above by hw-tph.

I understand it to mean there is an manual somewhere with sections (chapters?) numbered as described above. Is this available as a download, or is there a way to print all man pages so they follow this section format?

The 'man' command seems to work without my specifying a section number for the command I'm researching. The few commands I've tried seem to work without specifying a section. What is the purpose of including the section number in parenthesis immediately after a command when discussing that command in written documentation?
 
Old 05-26-2004, 06:36 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
If you tried a
man -k read, for instance, you'd see:

Code:
read                 (2)  - read from a file descriptor
read                 (n)  - Read from a channel
read [builtins]      (1)  - bash built-in commands, see bash(1)
If you do a man read, by default only one entry will
be displayed ... in case of read ofr example you'd miss
out on the bash-builtin ...


Try a few man -k (apropos) searches and you'll see
that there's many terms references more than once,
if you want a specific one you need to specify the
section...

e.g.

man n read

HIH!



Cheers,
Tink
 
Old 05-27-2004, 06:57 AM   #6
Charlie Spencer
Member
 
Registered: Nov 2003
Location: South Carolina, USA
Distribution: Fedora Core 5
Posts: 106

Rep: Reputation: 15
"man -k read" regurgitated a couple of hundred lines of what I assume are errors. After several seconds I fed it a CTRL-C and got back to a command prompt. "man" commands without the -k work fine. Rebooting (the last refuge of the incompetent) made no difference. I'm logged on as my user account, if that makes any difference.

I don't yet have internet access on my RH9 box so I can't cut and paste the messages. The first one began with:
BIO_append_filename

The next dozen began:
BIO_ctrl_get_read_request

Followed by three:
BIO_ctrl_get_write_guarantee

and so on.

I'm assuming "HIH" is a chat room abbreviation for something.
 
Old 05-27-2004, 08:16 AM   #7
Charlie Spencer
Member
 
Registered: Nov 2003
Location: South Carolina, USA
Distribution: Fedora Core 5
Posts: 106

Rep: Reputation: 15
Quote:
Originally posted by Charlie Spencer
"man" commands without the -k work fine.
No, it doesn't. "man man" works; "man 'anyothercommand' " results in "Bus error". Great, I've broken the help files.
 
Old 05-27-2004, 02:49 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
I think you have a dying hard-disk, IDE cable or DMA controller ...



Cheers,
Tink
 
Old 05-28-2004, 05:52 AM   #9
Charlie Spencer
Member
 
Registered: Nov 2003
Location: South Carolina, USA
Distribution: Fedora Core 5
Posts: 106

Rep: Reputation: 15
Correct diagnosis, but about an hour late. I installed a spare 10 gig drive from my spares inventory just before I did the install. Apparently I didn't mark it as questionable when I put it into spares, and it died early yesterday afternoon.
 
Old 05-28-2004, 06:57 AM   #10
slackist
Member
 
Registered: Feb 2004
Location: Phuket
Distribution: Slackware 14.2 and Slackware Arm
Posts: 479

Rep: Reputation: 44
Quote:
Originally posted by Tinkster
I think you have a dying hard-disk, IDE cable or DMA controller ...


Cheers,
Tink
Quote:
Originally posted by Charlie Spencer

Correct diagnosis, but about an hour late.....

Wow, Tinkster, you guys are good
 
  


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
commands scripttron75 Linux - General 4 10-03-2005 04:36 PM
commands merchtemeagle Linux - Newbie 6 10-12-2004 10:38 AM
Commands !!! ptreves Linux - Newbie 6 08-15-2004 03:26 AM
Help with commands! snowbaby Linux - Software 1 12-02-2001 02:15 PM
Commands Susan Linux - General 5 10-11-2001 02:40 AM

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

All times are GMT -5. The time now is 03:24 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