Q & A

  • GNULinux
  • 2 years ago

Man Pages are most reliable reference available for Linux users and man command remains the easiest way to access those reference pages. So here we are trying to keep those reference as PDF in your hard disk.

We are using groff  & ps2pdf utilities to convert man pages to pdf , groff is responsible for formatting of man pages.

 

Method 1:
Here we are converting man pages of man command

#zcat /usr/share/man/man1/man.1.gz |groff -man -Tps >man.ps
#ps2pdf man.ps  

 

Method 2:

syntax: man -t <command>|ps2pdf -  <output path>

#man -t man |ps2pdf  – /root/Desktop/man.pdf