How to print a man file?

Kezdőlap
Csatolmányok:
Üzenet email-ben
+ (text/plain)
Üzenet törlése
Válasz az üzenetre
Szerző: Bob George
Dátum:  
Tárgy: How to print a man file?
Eric Richardson

> Whats the easiest way to print a man file. I need to make it a
> postscript file so I can print it or just turn it into text is okay too.
> Thanks,


'man man' yields the -t option, which works if your printer is PostScript
compatible (or can generate a LOT of wasted paper if not):

    man -t man | lpr


If you just want text:

    man man | pr | lpr


If your printer does PostScript emulation, you might try:

man -t man | mpage -2or | lpr

This is what I often use to generate two-up pages for saving a bit of paper.
See 'man mpage' and 'man lpr' for details on what those do!

- Bob