LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 01-20-2006, 01:40 AM   #1
DanTaylor
Member
 
Registered: Jan 2006
Distribution: Debian Sarge
Posts: 265

Rep: Reputation: 30
Improving Linux Skills


I am a realative newb to Linux(still in the stage of learning what not to do). Is there any way I can get the Linux man pages in html or pdf format so I can read through them?
 
Old 01-20-2006, 01:52 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
To produce an html file of a manpage, you could use the -Thtml option.

I will use the -t option myself which defaults to producing a postscript output.
man -t sort | gv -antialias -scale 2 -media letter -

The above command will pipe the output into Ghostview "gv" where you can read it directly.

This command will print the output of a man page.
man -t rpmbuild | lpr
 
Old 01-20-2006, 02:09 AM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
You can also get them as plain text by doing
Code:
$man commandname | col -b -x > commandname.txt
You can then use other tools e.g. ghostscript or OOo.org to convert to pdf.
 
Old 01-20-2006, 04:38 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
There is a program called ps2pdf that you can use to convert a postscript file to pdf. The results will be more readable than plaintext.

example:
man -t find | ps2pdf - find.pdf

This will produce a pdf manpage of the find command in your current directory.
 
Old 01-20-2006, 06:00 AM   #5
muha
Member
 
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 37
if you're using KDE i know typing man:/<manpage> in the location bar of a browser (konqueror) works nicely.
If it gives multiple hits ending in .gz open them in a new tab, for instance by holding <Ctrl> while clicking.

So for instance in Konqueror:
man:/bash
(this only works in konqueror for me, since firefox wants to open 'gnome-help %s' and that does nothing ..)

Online version of manpages (googled) ~> http://linuxforum.com/man-pages.php
They are a little bit old but do the job i guess

/edit: Oops, MUCH better of course is this link for online version of man pages : http://man.linuxquestions.org/

Last edited by muha; 01-20-2006 at 06:07 AM. Reason: better link for man pages @ lq
 
Old 01-20-2006, 10:39 AM   #6
morrolan
Member
 
Registered: Sep 2003
Location: Manchester UK
Posts: 262

Rep: Reputation: 30
Try:

http://linuxcommand.org/superman_pages.php

Always helped me! There is also an extensive tutorial on using the command line on there which is extremely helpful!
 
Old 01-20-2006, 11:29 AM   #7
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 74
Quote:
Originally Posted by jschiwal
There is a program called ps2pdf that you can use to convert a postscript file to pdf. The results will be more readable than plaintext.

example:
man -t find | ps2pdf - find.pdf

This will produce a pdf manpage of the find command in your current directory.
"col -b -x" formats the document so that its exactly how you see it when you run "man commandname" from the console. This is readable and the output is really mice if you need to convert it to other formats later. As usual there are many ways to accomplish the same task.
 
Old 01-22-2006, 07:54 AM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
I would like to add a couple things not mentioned. While there isn't the equivalent of man -t <topic> for info pages you can enter "info:<topic>" in the konqueror web browser. These pages were produced by your distro ahead of time. Also there is a local server called "info2html" that can be used to translate the info pages to html for live browsing. This is how the info:<topic> pages were produced.

I will often install the source (either .tar.gz or .src.rpm) files and produce manuals from the source. I did this for the "Bash Reference Manual", "The Gawk Manual", and "GAWK: Effective AWK Programming". If you are new to GNU/Linux, printing out the Coreutils Manual is a must.

Also, take a look in what is available in the /usr/share/doc directory tree.
Code:
find ./ -iname "*.dvi" -o -iname "*.htm" \
           -o -iname "index.html" -o -iname "*.ps" \
           -o -iname "*.pdf"     | less
I bet you would be surprised how much documentation is there.

Last edited by jschiwal; 01-22-2006 at 11:21 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Improving linux skill? dratix General 4 11-21-2005 03:37 AM
C programming skills saxmanb Programming 4 06-09-2005 06:01 PM
Do I need programming skills to use linux? SGFHK321 Linux - General 19 08-23-2004 03:22 PM
ATI improving support for Linux ababkin Linux - Hardware 2 04-04-2004 12:56 AM
improving linux startup time aesahaettr Linux - General 3 10-26-2003 12:01 AM


All times are GMT -5. The time now is 04:19 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration