Linking to man page sections?
Yes, there is, it's http://man.cx/. It aims to have all man pages in one site, also in multiple languages. The anchors are unfortunately not named, but numbered: for example http://man.cx/printf#heading1 will take you to the first heading of the printf
man page. Still I think it's better than without anchors ;)
PS. Add the site to your search engines, then you can simply type man printf
in your address bar, and it will take you to the correct page, super awesome!
On unix.stackexchange, there are ways described to use the offline manpages as hypertext too. The easiest way for me seems w3mman, which is part of the package w3m
, so:
sudo apt-get install w3m
When you opened a man page, f.e. w3mman man
, you can use TAB to navigate to the next link. (Other man-typical keyboard shortcuts work the same: scrolling, searching, quitting :-)
To turn off quit confirmation (like man
behaves):
-
edit
~/.w3m/config
- if not existing:
cp /etc/w3m/config ~/.w3m/
- if not existing:
set
confirm_qq 0
To replace the normal man command:
-
edit
~/.bashrc
- add
alias man='w3mman'
- add
source ~/.bashrc
Now man <some command>
will use w3mman instead of the normal man :) I like it this way. Thanks for asking! :)