Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-15-2004, 07:34 PM   #1
Registered: Oct 2003
Posts: 40

Rep: Reputation: 15
Question How to print man pages?

I would like to print an entire man page. How is this done?
Old 08-15-2004, 07:40 PM   #2
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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
Old 08-15-2004, 08:31 PM   #3
Registered: Oct 2003
Posts: 40

Original Poster
Rep: Reputation: 15
Thanks bigrigdriver, just what I needed!
Old 09-25-2004, 06:33 PM   #4
Registered: Sep 2004
Distribution: Debian Testing / Unstable
Posts: 180
Blog Entries: 1

Rep: Reputation: 32
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



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
C++ man pages Guest1234 Linux - Newbie 2 06-29-2008 09:12 AM
C man pages sono2 Linux - General 1 09-09-2005 10:36 AM
How to print Man Pages anindyanuri Linux - Software 8 05-13-2005 09:38 PM
C++ man pages Guest1234 Ubuntu 0 05-11-2005 02:45 AM
What do you mean by MAN pages? inspectreo Linux - Newbie 2 05-08-2005 02:12 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:01 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration