how to print a man page

Malcolm Kay malcolm.kay at internode.on.net
Fri Nov 28 21:08:48 PST 2003


On Sat, 29 Nov 2003 05:48, Antoine Jacoutot wrote:
> On Friday 28 November 2003 20:10, Ian Todd wrote:
> > I have installed a local printer on /dev/lp0. I want to
> > print a man page how do i do that? Will it also fit onto
> > the page? i dont need to setup the size of my page?Thanks.
>
> $ groff -Tps -man /path/to/man/page/man.1 | lpr -P PS-Printer
>

This is making hard work of it. You need to first find the path to the 
man page; but man itself is capable of preparing a PS output:

$ man -t manpage | lpr -P PS-Printer

Malcolm Kay


More information about the freebsd-questions mailing list