{"id":122,"date":"1997-09-09T01:36:29","date_gmt":"1997-09-09T09:36:29","guid":{"rendered":"http:\/\/www.birdhouse.org\/betips\/?p=122"},"modified":"1997-09-09T01:36:29","modified_gmt":"1997-09-09T09:36:29","slug":"invoke-man-pages-from-the-terminal","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=122","title":{"rendered":"Invoke man pages from the Terminal"},"content":{"rendered":"<p>Update: It&#8217;s now possible to install the <a href=\"\/chunga.php?ID=385\">real man utility<\/a>, making this tip obsolete for some users.<br \/>\nUsing the BeOS terminal environment can be frustrating when you can&#8217;t remember how a command works. BeOS includes a small collection of man pages formatted in HTML. This tip sets up the familiar (to UNIX folks) man for shell command documentation.<br \/>\nYou can add the following shell function to your environment by creating or adding to your <code>\/boot\/home\/.profile<\/code>. It simply looks for html files in the directory <code>\/boot\/beos\/documentation\/Shell Tools\/man1<\/code>, and attempts to launch NetPositive to view them. Feel free to set up and substitute lynx for a terminal-only solution.<\/p>\n<pre>\nfunction man ()\n{\n  if test -f \/boot\/beos\/documentation\/Shell Tools\/man1\/$1.html ; then\n    NetPositive file:\/\/\/boot\/beos\/documentation\/Shell Tools\/man1\/$1.html\n  else\n    echo \"No manual entry for $1\"\n  fi\n}\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Update: It&#8217;s now possible to install the real man utility, making this tip obsolete for some users. Using the BeOS terminal environment can be frustrating when you can&#8217;t remember how a command works. BeOS includes a small collection of man pages formatted in HTML. This tip sets up the familiar (to UNIX folks) man for [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[11],"class_list":["post-122","post","type-post","status-publish","format-standard","hentry","tag-terminal"],"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/122","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=122"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/122\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=122"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=122"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=122"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}