Featured Posts

GoAccess is an interactive and website / web-server log analyzer tool currently better than the ApacheTop interface. It provides fast and valuable HTTP statistics for system administrators that require a visual...

Readmore

AjaxMyTop AjaxMyTop is a Web-based tool featuring an AJAX user interface for monitoring a MySQL server. Installing and configuring is fairly simple which you can done it within 2 minutes. [caption id="attachment_587"...

Readmore

Mod_spin is a content handler and/or a filter, meaning, for a specified file extension, mod_spin will read the file (or other input), parse it into an Abstract Syntax Tree (AST) and then replace the occurrences...

Readmore

Server Monitoring using DSTAT DSTAT an excellent tool which combines the overall stats of vmstat, iostat, netstat and ifstat. Dstat allows us to view all of the system resources in the real-time including the network bandwidth, network...

Readmore

BWM-NG Monitoring Network Bandwidth and Disk I/O using BWM-NG BWN-NG (Bandwidth-NG) is old and simple tool to monitor the bandwidth and disk I/O including the RAMdisk usage, this tool really helps the...

Readmore

  • Prev
  • Next

Man Page to txt/pdf/doc/html

Posted on : 16-04-2011 | By : admin | In : Tips

Tags:

0

Linux offer various tools both inbuilt and external tools to convert the man pages to .txt / .pdf / .doc / .html from the command line. I have included some of the simple tools which helps to convert. If you are using CentOS/red-hat based system you can install the Ghostscript package to include many features.

 

  • # yum install ghostscript

 

Man page to Text (.txt)

 

Man command include the col binary to convert the man page to text file. You can use the following syntax.

 

  • # man man | col -b > man.txt

 

The above example convert the man pages of man to text and store it in the “man.txt” file name.

Sample url : http://gnutoolbox.com/samples/manpages/man.txt

 

Man page to html (.html)

 

Use the man2html tool to convert the converted ascii man output to html file. Syntax below

 

  • # man2html -title ‘manpage_title’ < ascii_output_file > html_file

 

Man page to PDF (.pdf)

 

You need the ps2pdf tool (inbuilt with ghostscript package) to convert the man page to .pdf. Following is the simple syntax which can convert the man page to pdf in a better resolution.

 

  • # man -t man | ps2pdf -  > man.pdf

 

Note : There is a space between pd2pdf and the - .

 

Sample url: http://gnutoolbox.com/samples/manpages/man.pdf

Write a comment

You must be logged in to post a comment.