Man page

From Media Design: Networked & Lens-Based wiki
Jump to navigation Jump to search
man -t ls | ps2pdf - > ls.pdf


Creating pdfs of manpages is really useful! But it's hard to remember the command. So create a bash script that's in your path (for instance ~/bin/manpdf), with:

man -t $1 | ps2pdf - > $1.pdf

And be sure to chmod +x it so that you can then use it anytime you want to generate a PDF for intensive consulation.

For example:

manpdf mplayer

to create mplayer.pdf