LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-23-2007, 11:22 PM   #1
gexecuter
LQ Newbie
 
Registered: Jul 2007
Posts: 7

Rep: Reputation: 0
Question 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.
 
Old 07-24-2007, 12:29 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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.
 
Old 07-24-2007, 12:33 AM   #3
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
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.
 
Old 07-24-2007, 12:39 AM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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...
 
Old 07-24-2007, 12:41 AM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
Old 07-24-2007, 12:51 AM   #6
PatrickNew
Senior Member
 
Registered: Jan 2006
Location: Charleston, SC, USA
Distribution: Debian, Gentoo, Ubuntu, RHEL
Posts: 1,148
Blog Entries: 1

Rep: Reputation: 48
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.
 
Old 07-24-2007, 01:18 AM   #7
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
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.
 
Old 07-24-2007, 11:13 PM   #8
gexecuter
LQ Newbie
 
Registered: Jul 2007
Posts: 7

Original Poster
Rep: Reputation: 0
thanks guys
 
Old 07-27-2007, 05:03 PM   #9
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,832

Rep: Reputation: 108Reputation: 108
Hi,

Does anybody know how to read document from all sections using info?
Code:
man -a printf
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!
 
Old 09-23-2007, 04:23 PM   #10
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
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.
 
Old 09-23-2007, 07:00 PM   #11
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Rep: Reputation: 49
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.
 
Old 09-23-2007, 07:17 PM   #12
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
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.
 
Old 09-24-2007, 01:01 AM   #13
matrix13
Member
 
Registered: Nov 2006
Location: Kerala, India
Distribution: Arch Linux
Posts: 134

Rep: Reputation: 25
try this...
at terminal

Quote:
#man man
and
Quote:
man info
 
Old 09-24-2007, 02:03 AM   #14
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Rep: Reputation: 49
don't forget
Code:
$ info man
and
Code:
info info
!
 
Old 09-24-2007, 02:05 AM   #15
shailesh2000
LQ Newbie
 
Registered: Mar 2007
Posts: 9

Rep: Reputation: 0
Smile hi

Quote:
Originally Posted by gexecuter View Post
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
 
  


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
newbie question: whats the difference between "su root", "su" and "su -&quo mojarron Slackware 9 12-07-2009 04:08 PM
LXer: Displaying "MyComputer", "Trash", "Network Servers" Icons On A GNOME Desktop LXer Syndicated Linux News 0 04-02-2007 08:31 AM
Can you explain the difference between "Free Software (GNU)" and "Open Source"? vharishankar General 5 03-03-2005 09:40 AM
difference between "Web server local URL" and "IPv4 address"? kpachopoulos Linux - General 2 09-17-2004 01:30 PM
"User" & "System" CPU load difference JJX Linux - General 3 06-06-2004 01:42 AM

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

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