LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-21-2008, 11:44 PM   #1
concoran
Member
 
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 473

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, 12: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, 02:23 AM   #3
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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 02:30 AM. Reason: ps2pdf output redirection removed. Works but not needed.
 
Old 05-22-2008, 04: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 04:54 AM.
 
Old 05-22-2008, 05:44 PM   #5
Kenhelm
Member
 
Registered: Mar 2008
Location: N. W. England
Distribution: Mandriva
Posts: 360

Rep: Reputation: 170Reputation: 170
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



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

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

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