LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-24-2004, 08:34 AM   #1
hq4ever
Member
 
Registered: May 2004
Location: Israel
Distribution: Debian
Posts: 98

Rep: Reputation: 15
linux manuals


i did a
Code:
man xargs
at the end of the manual i see
Quote:
See also
Quote:
find(1L), locate(1L), locatedb(5L), updatedb(1)
what is the meaning of those 1L, 5L, 1 ?
is the some kind of link between the man pages or do i need to exit this man & go type again man find ?

BTW i work on mandrake 10.0 if that matters.
tnx, max
 
Old 06-24-2004, 08:49 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I had to look it up - I knew about the sections but not the 'L'. Apparently it refers to the local machine although how that makes sense in context, I dunno. Anyway, yeah, it just refers to the section the thing is in (sometimes different man pages have the same name) so you can get it by typing 'man foo' unless it's the wrong one. Then 'man 1 foo' will give the specific 'user command' foo. Apparently 'man 1L foo' will give you the user/local command. ('man -a foo' will give you all of them.)
 
Old 06-24-2004, 01:01 PM   #3
hq4ever
Member
 
Registered: May 2004
Location: Israel
Distribution: Debian
Posts: 98

Original Poster
Rep: Reputation: 15
i'm sorry to say but i do not understand you completely

maybe i wasn't clear enough in my first post : this is the first time i used man.

why do i even need those <command>[#?] things if i can just go and do man <command> ?
 
Old 06-24-2004, 02:54 PM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Sorry.

Like 'printf' - if you type 'printf' you get 'printf(1)'. But if you were looking for the 'printf(3)' man page, you'd miss it. So that's why you type 'man -a printf'. Except if you *know* you want 'printf(3)' then that's a waste of time, so you just do 'man 3 printf' to go to it directly.

As far as the see also's, those are references to other man pages that are relevant to the man page you're currently looking at. So, yeah, you just type those in as your next man pages if you want. They're just saying 'check out this specific man page'.

1 User commands
2 System calls
3 Subroutines
4 Devices
5 File formats
6 Games
7 Miscellaneous
8 Sysadmin
n New

Plus, like everything else, there's accretion, I think. 'n' was just the first step. I believe there are others. And apparently nL, too.
 
Old 06-24-2004, 04:28 PM   #5
hq4ever
Member
 
Registered: May 2004
Location: Israel
Distribution: Debian
Posts: 98

Original Poster
Rep: Reputation: 15
OK so the (n) at the end of the command is just for a fast finding the required page in the manual? or do they have several different manuals for the same <command> if so why? where is the logic in building different manuals for the same thing ?
 
Old 06-24-2004, 06:41 PM   #6
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
I think you're making this more complicated than it is. As you know, some commands have a similar purpose to others and/or perform operations that are similar to others. As an example, both "find" and "locate" do similar things -- they tell you where a given file is, but they are 2 different commands

The "See Also" section is simply an attempt to be helpful by bringing other related commands to your attention. There's no requirement that you also have to read the man pages of those commands, but if the initial command you initially were researching turned out to be unhelpful, then perhaps one of the commands in the "See Also" section would be what you were looking for. In other words it's just a reference to other related materials.

As digiot indicated, the number refer to a specific section of the man pages, but you could simply run a plain "man <command>" without concerning yourself with the exact section. -- J.W.
 
Old 06-25-2004, 01:29 AM   #7
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Quote:
Originally posted by hq4ever
...do they have several different manuals for the same <command> if so why? where is the logic in building different manuals for the same thing ?
Well, he's sort of making it more complicated than it is, but it can be kinda complicated.

By and large, yeah, just type 'man <command>'. That's all you really *need* to worry about. You'll get the 'user' pages first and that's generally what you want.

But, for instance, the bash man page is frigging *huge*. So zsh comes with about a dozen man pages, instead. It's just broken down into more easily digestible pieces (though it's also more confusing). So there are rare cases where there are multiple man pages for one command, but it's just a case of breaking down one man page into components. And, as I say, sometimes there will be a user command like 'printf' that as the same name as a 'subroutine', say. So it'll be two different things and the section/number just keeps them unambiguous.

It doesn't help that 'the GNU folks abhor man pages' and do their best to completely screw them up. I do much more than 'abhor' info pages, so I guess it takes all kinds. Also, the body of man pages that you get are collected from all over. Each maintainer of a package may write (or have others write) a few man pages. Giant chunks of those subroutines and so on are maintained by still other people. And so on.

But stick with J.W. and you'll be fine.
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PPTP manuals - Where ? aurelio26 Linux - Newbie 4 10-04-2004 09:17 PM
rpm manuals+++ how-to alaios Linux - General 6 04-19-2004 09:15 PM
I need Mandrake-Linux learning manuals abokolor Mandriva 11 10-22-2003 05:55 AM
Can't find the manuals! Offline funkenbooty Linux - Newbie 1 07-26-2003 09:27 PM
IPables tutorial or manuals? Noryungi Slackware 6 07-26-2003 04:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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