{"id":85,"date":"2015-03-07T16:42:15","date_gmt":"2015-03-07T16:42:15","guid":{"rendered":"http:\/\/eliteservermanagement.com\/issues\/?p=85"},"modified":"2022-05-02T11:07:48","modified_gmt":"2022-05-02T11:07:48","slug":"how-to-fix-linux-unix-command-not-found-error-and-solution","status":"publish","type":"post","link":"https:\/\/eliteservermanagement.com\/issues\/how-to-fix-linux-unix-command-not-found-error-and-solution\/","title":{"rendered":"How to fix Linux \/ UNIX: Command Not Found Error and Solution?"},"content":{"rendered":"<p>When you get the error &#8220;Command not found&#8221; it means that Linux or UNIX searched for command everywhere it knew to look and could not find a program by that name\u00a0Make sure command is your path.<\/p>\n<p style=\"text-align: left;\"><strong>You can see current search path with following command:\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/strong><a href=\"https:\/\/eliteservermanagement.com\/managed-dedicated-server\/\"><img loading=\"lazy\" class=\"alignright size-medium wp-image-179\" src=\"http:\/\/eliteservermanagement.com\/issues\/wp-content\/uploads\/2015\/03\/300x250-02-300x250.jpg\" alt=\"\" width=\"300\" height=\"250\" \/><\/a><\/p>\n<p>$ echo $PATH<br \/>\nSample outputs:<\/p>\n<p>\/usr\/bin:\/bin:\/usr\/sbin:\/sbin:\/usr\/X11R6\/bin:\/usr\/local\/bin<\/p>\n<p>Usually, all user commands are in \/bin and \/usr\/bin or \/usr\/local\/bin directories.<\/p>\n<p><em>*<strong>Also Checked<\/strong>: <a href=\"https:\/\/eliteservermanagement.com\/how-to-install-cpanel\/\">How To Install cPanel<\/a><\/em><\/p>\n<p>All your programs are installed in these directories. When you type the clear command, you are running \/usr\/bin\/clear. So if it is not in your path try to add directories to your search path as follows<\/p>\n<p>export PATH=$PATH:\/bin:\/usr\/local\/bin<\/p>\n<p>You can also find out of path of any command with which or where is commands:<\/p>\n<p>$ which ls<br \/>\n\/bin\/ls<\/p>\n<p>$ which gcc<br \/>\n\/usr\/bin\/gcc<\/p>\n<p>by-<\/p>\n<p><a href=\"http:\/\/eliteservermanagement.com\/\"><b>eLite Server Management<\/b><\/a><\/p>\n<p>We Specialize In cPanel Server Management<br \/>\nAffordable 24\/7 Technical Support Company<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you get the error &#8220;Command not found&#8221; it means that Linux or UNIX searched for command everywhere it knew to look and could not find a program by that name\u00a0Make sure command is your path. You can see current search path with following command:\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[12],"tags":[20,21],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/eliteservermanagement.com\/issues\/wp-json\/wp\/v2\/posts\/85"}],"collection":[{"href":"https:\/\/eliteservermanagement.com\/issues\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eliteservermanagement.com\/issues\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eliteservermanagement.com\/issues\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eliteservermanagement.com\/issues\/wp-json\/wp\/v2\/comments?post=85"}],"version-history":[{"count":7,"href":"https:\/\/eliteservermanagement.com\/issues\/wp-json\/wp\/v2\/posts\/85\/revisions"}],"predecessor-version":[{"id":243,"href":"https:\/\/eliteservermanagement.com\/issues\/wp-json\/wp\/v2\/posts\/85\/revisions\/243"}],"wp:attachment":[{"href":"https:\/\/eliteservermanagement.com\/issues\/wp-json\/wp\/v2\/media?parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eliteservermanagement.com\/issues\/wp-json\/wp\/v2\/categories?post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eliteservermanagement.com\/issues\/wp-json\/wp\/v2\/tags?post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}