If you wish to view documentation for commands and utiilties on a system running Apple's OS X operating system, or Linux, you can use the
man
command to view the manual page, aka a
"man
page" for the command/utility. If you want to convert the man page to
a HyperText Markup
Language (HTML) document, you can use the
groff
text formatting utility. You can find man pages beneath the
/user/share/man
directory in subdirectores named manx
where x is a number, e.g. man1
, man2
,
etc. E.g. under OS X, if you wanted to view the documentation for Apple's
AppleScript
scripting language osascript
utility, you can find the man page on an OS X system at
/usr/share/man/man1/osascript.1
. To format it as HTML,
you can pipe the contents of the file into groff
as
shown below:$ cat /usr/share/man/man1/osascript.1 | groff -mandoc -Thtml >man_osascript.html
[ More Info ]