Printing a man page to a postscript printer
To use the terminal to print a postscript page of a man page use these commands:
groff -Tps -man /usr/share/man/man7/groff.7 | lpr -P LaserWriter_8500
I’m using an Apple Laserwriter 8500. To find the printers available to your lpr command use the command lpstat -a to list them. If there isn’t a printer available, you will need to set one up using your print center utility.
April 11th, 2005 at 3:08 pm
I always want to use this and forget. Here’s the command I found that works for me (and is easier to remember):
man -t groff | lpr
My default printer is used and the man output is already in PostScript format.
April 19th, 2005 at 10:42 am
Thanks God! This was so very very helpful! I had been trying to figure out how to print a man page for some time. Thank You!