![]() |
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.
|
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.
|
Quote:
|
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... :)
|
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. |
Quote:
Learn something new every day. |
Quote:
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 |
thanks guys
|
Hi,
Does anybody know how to read document from all sections using info? Code:
man -a printf Happy Penguins! |
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. |
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 |
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. |
try this...
at terminal Quote:
Quote:
|
don't forget
Code:
$ info man Code:
info info |
hi
Quote:
man gives the full information with all types of flag, which are generally not required in everyday task. shailesh vaidya |
All times are GMT -5. The time now is 01:50 PM. |