LinuxQuestions.org
Review your favorite Linux distribution.
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 05-22-2008, 12:44 AM   #1
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 472

Rep: Reputation: 30
How to 'cat' a 'man' page?


Just like one does 'cat filename', is it possible to do cat a manpage?
Also, in Redhat/Fedora/CentOS, is it possible to see man pages in a browser?
 
Old 05-22-2008, 01:13 AM   #2
greplinux
Member
 
Registered: Jun 2007
Posts: 118

Rep: Reputation: 17
I think it is possible with pipe.

Try this "man <cmd> | cat

Eg:

man rm | cat

:-)
 
Old 05-22-2008, 03:23 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
If you use konqueror you can enter "man:<topic>" in the browser to read an html version.
This also works for info manuals as well: "info:<topic>".

If you want to produce hard copy of a manpage, since it is troff source, I would prefer using

man -t <topic> | lpr
to print it out.

You can simply read it like:
man -t <topic> | kghostview -
A different postscript viewer could be used as well.

If you have the ghostscript-library package, the ps2pdf program can come in handy:
man -t find | ps2pdf - find.man.pdf

Last edited by jschiwal; 05-22-2008 at 03:30 AM. Reason: ps2pdf output redirection removed. Works but not needed.
 
Old 05-22-2008, 05:52 AM   #4
helgiks
LQ Newbie
 
Registered: May 2008
Posts: 13

Rep: Reputation: 0
You can find the actual man file under /usr/share/man (this may vary) and use $ bzcat manfile


(it probably is compressed with bz2 extension, bzcat will decompress and post the output to stdout.)

Last edited by helgiks; 05-22-2008 at 05:54 AM.
 
Old 05-22-2008, 06:44 PM   #5
Kenhelm
Member
 
Registered: Mar 2008
Location: N. W. England
Distribution: Mandriva
Posts: 333

Rep: Reputation: 141Reputation: 141
To get a plain text version of a man page try:
Code:
man <topic> | col -b > topic.txt
The text file can be viewed in Firefox, Konqueror, Dillo etc.
 
  


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
How do I get out of a man page? christianunix Linux - Newbie 4 10-17-2007 09:37 PM
man alsamixer not showing the man page nosaku Slackware 1 12-20-2004 09:52 AM
Is there a man page on how to use man page? jdruin Linux - Software 2 10-30-2004 10:29 AM
getting out of a man page! naijaguy Linux - Newbie 2 08-13-2004 10:28 PM
man page? chandan Linux - Newbie 1 07-16-2003 08:31 PM


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