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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
07-23-2007, 11:22 PM
|
#1
|
|
LQ Newbie
Registered: Jul 2007
Posts: 7
Rep:
|
difference between "man" and "info"
so i am starting to learn the terminal commands and i am wondering what is the difference between "man" and info", they both provide information but i am not sure what is the difference between them.
|
|
|
|
07-24-2007, 12:29 AM
|
#2
|
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,591
|
It's like the vi vs. emacs wars. Some folks prefer the 'man' tool, some prefer the 'info' tool. Two camps, two sets of information.
|
|
|
|
07-24-2007, 12:33 AM
|
#3
|
|
Senior Member
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian Squeeze, Gentoo
Posts: 1,147
Rep:
|
Quote:
|
Originally Posted by macemoneta
Two camps, two sets of information.
|
Actually, I've discovered that in a surprising number of instances, the info page is a direct copy of the man page. man is the good old standby that is relatively likely to be on any given Linux machine, whereas info imho makes it easier to find what you're looking for when you don't know what you're looking for. That is, if I want information on socket(), I would do "man 2 socket". But if I wanted some kind of IPC, but didn't know anything about IPC, info may be more useful. All just opinions tho. man has tools for doing things like that, I just prefer info's.
|
|
|
|
07-24-2007, 12:39 AM
|
#4
|
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,591
|
Yes, the "innocent bystanders" typically replicate data or simply point from one to the other. Then there's the third camp, the '/usr/share/doc/' folks that refuse to format their documentation for either tool... 
|
|
|
|
07-24-2007, 12:41 AM
|
#5
|
|
Moderator
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
The man pages will be shorter then the info pages. They will give the syntax and options. They are written using nroff source. Info documents have links to allow you to navigate to different parts of the document. Some have a very large number of pages. For example, compare man gawk with info gawk. The gawk info manual is a book "GAWK: Effective Awk Programming".
The info pages use docbook source. Often you can access the source be installing the source package, and using the "make dvi", "make pdf" or "make ps" targets. For manpages you can use "man -t <topic> | lpr" for a better looking printed document.
---
If an info page doesn't exist, the manpage will be displayed instead. The GNU pushes using info pages instead of (or at least in addition to) man pages, but manpages are easier to write from a template.
Last edited by jschiwal; 07-24-2007 at 12:44 AM.
|
|
|
|
07-24-2007, 12:51 AM
|
#6
|
|
Senior Member
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian Squeeze, Gentoo
Posts: 1,147
Rep:
|
Quote:
|
Originally Posted by jschiwal
If an info page doesn't exist, the manpage will be displayed instead. The GNU pushes using info pages instead of (or at least in addition to) man pages, but manpages are easier to write from a template.
|
I didn't know that. That would explain why some info pages seem to be exact copies of the man pages - because I didn't download an info doc for it, so it's showing the manpage.
Learn something new every day.
|
|
|
|
07-24-2007, 01:18 AM
|
#7
|
|
Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131
Rep: 
|
Quote:
|
Originally Posted by PatrickNew
Learn something new every day.
|
We do.
man-pages are the "original" UNIX manual pages. Info-pages are a newer system, which I never quite got to like. Everything needed and a lot more is included in the manual pages (man), whereas the same information plus a whole lot more you are never going to read is in the infopages. It's a matter of taste, I personally like manpages and don't have the info system installed. If I want more or more precise information than man can offer, I go to the store and buy a good book..
I also tend to think man-pages are easier to read and use. Info pages are split up (you'll have a front page and a hundred links..grr) so it means a whole lot of looking for links, going back and looking for correct links before getting to the point. In man-pages I simply
Code:
man -k keyword
man [ n ] pagename
and then hit / and start searching.
|
|
|
|
07-24-2007, 11:13 PM
|
#8
|
|
LQ Newbie
Registered: Jul 2007
Posts: 7
Original Poster
Rep:
|
thanks guys
|
|
|
|
07-27-2007, 05:03 PM
|
#9
|
|
Senior Member
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy jessie
Posts: 1,333
Rep:
|
Hi,
Does anybody know how to read document from all sections using info?
gives us documents from section 1 and 3 on my penguin. "info printf" gives me only section 1. "info info" and "man info" are not quite helpful to solve this.
Happy Penguins!
|
|
|
|
09-23-2007, 04:23 PM
|
#10
|
|
Senior Member
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
|
Tips for info haters
Tips for info haters, & I'm one of you:
1st, if you have KDE, use the "info:" kioslave by entering "info:<name_of_program>" as a URL in Konqueror, it will convert the info pages into html, complete w/ clickable links. This makes the info multiple-page-BS almost bearable, especially w/ the use of tabbed browsing. "##<name_of_program>" also works.
If I didn't have the kioslave available, I would consider removing info from my system.
2nd, the documentation (i.e. info pages) for GNU programs is available on-line at: http://www.gnu.org/manual/manual.html
Many of these, like GRUB, gawk, & bash, have an "entirely on one web page" version. I find these versions especially convenient because you can search the whole document at once.
|
|
|
|
09-23-2007, 07:00 PM
|
#11
|
|
Senior Member
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,137
Rep:
|
I don't mean to hijack this thread, but do you ever use them? I've been using linux for quite a long time, but I never understood man pages. What makes them so hard to use for me is that they aren't very practical. They don't give you examples and the options are in no particularly useful order most of the time. And the descreption is often very vague, or something like
Code:
-g --great-option
same as -dmfgsrx
Usually I'm faster if I use google/linux than if I look into the manpages.
Last edited by oskar; 09-23-2007 at 07:02 PM.
|
|
|
|
09-23-2007, 07:17 PM
|
#12
|
|
Senior Member
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,591
|
I've been using Linux on many systems since the mid 1990s, and I reference man pages several times a day. They frequently have examples, and I don't find them difficult to read at all (never have). I have a computer/technical background, so that likely skews my response.
I'd suggest that, like anything, the more experience you have using them, the easier it gets. I doubt most people could read the technical documentation (e.g., service manuals) for their cars either without some initial effort.
|
|
|
|
09-24-2007, 01:01 AM
|
#13
|
|
Member
Registered: Nov 2006
Location: Kerala, India
Distribution: Arch Linux
Posts: 134
Rep:
|
try this...
at terminal
and
|
|
|
|
09-24-2007, 02:03 AM
|
#14
|
|
Senior Member
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,137
Rep:
|
|
|
|
|
09-24-2007, 02:05 AM
|
#15
|
|
LQ Newbie
Registered: Mar 2007
Posts: 9
Rep:
|
hi
Quote:
Originally Posted by gexecuter
so i am starting to learn the terminal commands and i am wondering what is the difference between "man" and info", they both provide information but i am not sure what is the difference between them.
|
hi,
man gives the full information with all types of flag, which are generally not required in everyday task.
shailesh vaidya
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:16 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|