You are not logged in.
I am wanting to print a few man pages direct from the command line. I used this command:
man command | lpr -P Printer
, which works, but the default font and characters per line produces output that straggles lines. I have looked at "man fmt" but there is no option to change font size, only max. line width. The problem is changing line width only partly solves the problem as man pages have linefeeds.
Any ideas on how to get a decent printed copy of man pages from the command line would be appreciated.
Last edited by lagagnon (2010-08-28 00:19:40)
Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.
Offline
DOH! Maybe I should learn to read the man pages a bit more carefully - thanks falconindy!
Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.
Offline
please mark as solved
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
DOH! Maybe I should learn to read the man pages a bit more carefully - thanks falconindy!
Just memorize them after printing...
Offline
I love the -t option, I actually have it as a function to view man pages as pdf, it is really handy on longer manuals as the output of -t is much nicer than reading from a terminal.
manpdf () {man -t $1 | ps2pdf - /tmp/manpdf_$1.pdf && xdg-open /tmp/manpdf_$1.pdf ;}
Offline