{"id":763,"date":"2009-10-05T07:06:48","date_gmt":"2009-10-05T15:06:48","guid":{"rendered":"http:\/\/betips.net\/?p=763"},"modified":"2009-10-05T07:06:48","modified_gmt":"2009-10-05T15:06:48","slug":"dont-duplicate-commands","status":"publish","type":"post","link":"https:\/\/www.betips.net\/?p=763","title":{"rendered":"Don&#039;t duplicate commands"},"content":{"rendered":"<p>When you start working in Haiku, it is tempting to hit the repositories and download everything in sight. A lot of command-line files can be found there from the BeOS days. But you might want to check if you don&#8217;t already have them.<br \/>\nTake wget, for example: an excellent command-line utility that will reach out over the net and retrieve a file. You will find it on both Bebits and Haikuware, and if you download it you should install it into <em>\/boot\/home\/config\/bin<\/em>.<br \/>\nBut wait a minute! Haiku already has its own wget, in <em>\/boot\/system\/bin<\/em>. Now suppose you had both, which one would activate if you typed \u00a0<em>wget<\/em> in the Terminal? That is easy to find out, just type the following command:<br \/>\n<em>echo $PATH<\/em><br \/>\nand it will spit out a list of directories all ending with &#8222;bin&#8220; (for &#8222;binary&#8220;). Whenever you type a command in the Terminal, it will search those directories, in that exact order, for something to execute. On a typical system,\u00a0<em>\/boot\/home\/config\/bin<\/em> always wins.<br \/>\nIn fact, Haiku contains a lot of these command-line utilities that used to be separate downloads in BeOS. When I examined my bin directories I found duplicates of <em>wget<\/em>, <em>top<\/em>, <em>reindex<\/em>, <em>clear<\/em> and <em>tput<\/em>. \u00a0Now maybe the one in <em>\/boot\/home\/config\/bin<\/em> really is more up-to-date, in which case you can just leave it alone. But will you remember to check after Haiku next receives an update? And there is a real possibility that you are using an out-of-date version.<br \/>\nSo before you download and install anything for the Haiku command line, just open a Terminal and type that command to see if it isn&#8217;t there already.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you start working in Haiku, it is tempting to hit the repositories and download everything in sight. A lot of command-line files can be found there from the BeOS days. But you might want to check if you don&#8217;t already have them. Take wget, for example: an excellent command-line utility that will reach out [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[4,17,11],"class_list":{"0":"post-763","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"tag-haiku","8":"tag-terminal"},"_links":{"self":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/763","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\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=763"}],"version-history":[{"count":0,"href":"https:\/\/www.betips.net\/index.php?rest_route=\/wp\/v2\/posts\/763\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=763"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=763"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.betips.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=763"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}