How do I print a Man Page?

If you are like me, sometimes you need to actually print a man page for a certain command. Linux has a lot of built in documentation but sometimes it can be a little hard to get at. Use the following command to print out an online man page.

cd /usr/share/man/ and run zcat man.1.gz | groff -mandoc - > man.ps
lpr man.ps

Be sure that you have the package named "groff" installed. The location of your actuall man pages may be different as well. The above path is normally used in Debian Linux.

Updated 10/11/00

The following update was sent in by Steve Limkemann
"......a slightly easier, and more portable, way to print man pages is to use the command "man -t someManPage | lpr" without the quotes."

posted @ Wednesday, October 11, 2000 9:57 PM

Print

Comments on this entry:

No comments posted yet.

Your comment:






 
 
 
Please add 1 and 5 and type the answer here:
 

Live Comment Preview:

 
«August»
SunMonTueWedThuFriSat
272829303112
3456789
10111213141516
17181920212223
24252627282930
31123456