LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to print man pages? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-print-man-pages-218048/)

fclifton 08-15-2004 07:34 PM

How to print man pages?
 
I would like to print an entire man page. How is this done?

bigrigdriver 08-15-2004 07:40 PM

To print man pages:
In this example, using tar man pages.

man -t tar | lpr -Pdraft

Print man pages for tar (will be formatted by troff or groff,
usually for PostScript)
Pipe to lpr
Send to printer <draft> [optional]. The command will
print to the default printer if given as:
man -t tar | lpr

fclifton 08-15-2004 08:31 PM

Thanks bigrigdriver, just what I needed!

sixerjman 09-25-2004 06:33 PM

re: Printing man pages
 
I don't have a postscript printer and when I tried the man -t <man page> | lpr method I got a man error 768. Redirecting the man output to file and then printing the file worked for me:

man ls > manls.txt ; lpr manls.txt ; rm cat manls.txt

:)


All times are GMT -5. The time now is 07:52 PM.