053692nd since April 04, 2007
Xicheng's web log
----- a place to make mistakes and learn from scratch
1 -
1 of
totally 1
entry
in
Apr, 2009 found
Apr 28, 2009 ( Tuesday )
( 297 )
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:
This command will generate lsof.pdf under the current directory. wrap this method into a bash function:
then printing any Linux man page is just easy, i.e. for lsof, type:
Enjoy
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
}
{
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
[ Previous Page ] | [ Blog Main ]
Monthly archives
Site Statistics
Newest comments
My links
Add new links
Advanced Search
Blog
