Tuesday, January 6, 2015

convert linux man page to pdf

man -t find | ps2pdf - find.pdf

export MANWIDTH=120
#unset MANWIDTH

How to print man pages:

       MANWIDTH
              If $MANWIDTH is set, its value is used as the line length for which manual pages should
              be formatted.  If it is not set, manual pages will be  formatted  with  a  line  length
              appropriate to the current terminal (using an ioctl(2) if available, the value of $COL‐
              UMNS, or falling back to 80 characters if neither is available).  Cat pages  will  only
              be saved when the default formatting can be used, that is when the terminal line length
              is between 66 and 80 characters.

Labels: ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home