How to Print a Man Page

September 14, 2007 on 3:50 pm | In ManPageMinute, Techspeak |

If you want to print a man page, it’s this simple:

man ls | col -b | lp

If you just want to instead save the man page to a file, so you could email it or post it to a web site, just leave out the trailing | lp, as in

man ls | col -b > ls-man.txt

This will save the man page for the ls command without any formatting, to a file named ls-man.txt.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • blogmarks
  • BlogMemes
  • Reddit
  • StumbleUpon
  • Technorati
  • YahooMyWeb
  • Slashdot

No Comments yet »

RSS feed for comments on this post. TrackBack URI

Leave a comment

You must be logged in to post a comment.

Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds. Valid XHTML and CSS. ^Top^

Bad Behavior has blocked 299 access attempts in the last 7 days.