How can I make manpages (from the man
command) open in a web browser for easier navigation?
How can I make manpages (from the man
command) open in a web browser for easier navigation?
I installed the man2html
package then navigated to http://localhost/cgi-bin/man/man2html
to view the man pages. These pages can be viewed offline, link to other man pages and feature a search function.
Source
I made this script here (it's not short), it just navigates directly to the webpage (from man2html
) for a certain manpage. It can open multiple man pages specified as command line arguments. Save the script somewhere and give it execute permissions (chmod +x script.sh
). Run it as ~/script.sh
(assuming saved in ~
directory) with pages to open as arguments. To open something like init(8)
, use ~/script "8 init"
.
Install the dwww
paackage and navigate to http://localhost/dwww/man/1
to search the pages. These pages can be viewed offline, link to other man pages and feature a search function.
I made this script here (it's not short), it just navigates directly to the webpage (from dwww
) for a certain manpage. It can open multiple man pages specified as command line arguments. Save the script somewhere and give it execute permissions (chmod +x script.sh
). Run it as ~/script.sh page
(assuming saved in ~
directory) with pages to open as arguments. To open something like init(8)
, use ~/script init/8
. Without pcregrep
, you need to type the /8
all the time, with it, just type the name of the page.