LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices



Reply
 
Search this Thread
Old 08-15-2004, 08:34 PM   #1
fclifton
Member
 
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, 08:40 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Squeeze
Posts: 5,805

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
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, 09:31 PM   #3
fclifton
Member
 
Registered: Oct 2003
Posts: 40

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

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

 
  


Reply


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 10:12 AM
C man pages sono2 Linux - General 1 09-09-2005 11:36 AM
How to print Man Pages anindyanuri Linux - Software 8 05-13-2005 10:38 PM
C++ man pages Guest1234 Ubuntu 0 05-11-2005 03:45 AM
What do you mean by MAN pages? inspectreo Linux - Newbie 2 05-08-2005 03:12 PM


All times are GMT -5. The time now is 12:00 PM.

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