Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-21-2008, 11:44 PM   #1
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, 12:13 AM   #2
Registered: Jun 2007
Posts: 118

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

Try this "man <cmd> | cat


man rm | cat

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

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

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
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
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:
man <topic> | col -b > topic.txt
The text file can be viewed in Firefox, Konqueror, Dillo etc.


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 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
getting out of a man page! naijaguy Linux - Newbie 2 08-13-2004 09:28 PM
man page? chandan Linux - Newbie 1 07-16-2003 07:31 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration