Blog
053527th since April 04, 2007
R
Apr 28, 2009 ( Tuesday )
( 296 )
Printing Linux man page
 The quick answer is using: man -k and ps2pdf. i.e., to export "man lsof" into a PDF file for printing, just run:
man -k lsof | ps2pdf - lsof.pdf

This command will generate lsof.pdf under the current directory. wrap this method into a bash function:
pdfman()
{
    man -t ${1?Usage: $0 command} | ps2pdf - $1.pdf
}


then printing any Linux man page is just easy, i.e. for lsof, type:

padman lsof


Enjoy
...More
Add tags: Linux manual ps2pdf

by xicheng
09:13:27 | Modify entry
Add a comment:

Read the Guidance for the first time users

Name:
Code: