man2html

Tagged:  •    •    •  

Today I just discovered another cool tool: man2html. Funny enough, I saw it mentioned in a Mac OS hints blog. man2html allows you to see the local man pages in your favorite browser.

In order to install man2html on an Ubuntu box do the following:

  • Install the man2html package through Synaptic or apt-get
  • Make sure you have apache2 installed and running
  • Now you can just go to the following URL: http://localhost/cgi-bin/man/man2html :-)

You can also use the command line using hman instead of man:

  • Add the following line to your ~/.bashrc file: export MANHTMLPAGER=firefox, this tells hman what browser to use, replace firefox with whatever browser you are using
  • Now instead of man use hman, for example try hman man2html
Technorati Tags:

Reply

  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]". PHP source code can also be enclosed in <?php ... ?> or <% ... %>.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options