How do I print or make hard copies of Linux man and info pages?

by admin on October 7, 2005 · 0 comments

in Tip that matters

Very simple, here is the command to convert man page of ls command to text file:

man ls | col -b > ls.txt

Then use lpr print command to print ls.txt file i.e. it sends a print job to the default system queue/printer connected to Linux/UNIX:
cat ls.txt | lpr
OR
lpr ls.txt

You can also try:
man ls | col -b | lpr

You can also print GNU Linux info pages:

info ls | col -b| lpr

Please note col command filter reverse line feeds from input i.e it removes \r \n like character.

{ 0 comments… add one now }

Leave a Comment


8 + six =

Previous post:

Next post: