How To Create PDF’s Of GNU/Linux Manpages

January 18, 2010 by
Filed under: command line, HowTo, linux, Ubuntu 

If you're a heavy user of the GNU/Linux command line, then you're already familiar with the man command. If you're a newbie, the man command (short for manual, as in RTFM) pulls up the online documentation for terminal commands and outputs it to the same terminal. Perhaps you wish you could have some of these handy documents loaded on your PDA or smartphone as a reference.

If I wanted to know how to call up GNOME's document viewer, Evince, I could open a terminal and type:

man evince

With the following simple command you can get a man page to output as a PDF. Then you can copy it to your device of choice for portability. (I'll use evince again since it has a short man page.)

man -t evince | ps2pdf - evince.pdf

Now I can view the new pdf with

Affiliate Link
evince evince.pdf

Here's what the resulting pdf looks like: Evince Man Page

Comments

One Response to “How To Create PDF’s Of GNU/Linux Manpages”

  1. Story added...

    This story has been submitted to fsdaily.com! If you think this story should be read by the free software community, come vote it up and discuss it here:

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>