{"id":4436,"date":"2022-05-09T17:42:10","date_gmt":"2022-05-09T22:42:10","guid":{"rendered":"https:\/\/www.incredigeek.com\/home\/?p=4436"},"modified":"2022-05-09T17:42:25","modified_gmt":"2022-05-09T22:42:25","slug":"add-directory-to-path-in-linux","status":"publish","type":"post","link":"https:\/\/www.incredigeek.com\/home\/add-directory-to-path-in-linux\/","title":{"rendered":"Add directory to path in Linux"},"content":{"rendered":"\n<p>Adding a directory to your path is really easy.<\/p>\n\n\n\n<p>The following command adds the ~\/script_folder to our PATH paths.  Once run, we&#8217;ll be able to call any script in the script folder like it was a system utility.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">PATH=\"$HOME\/script_folder\/:$PATH\"<\/pre>\n\n\n\n<p>If you would like to always be able to call any file in your scripts folder, add the above command to your ~\/.bashrc file.<\/p>\n\n\n\n<p>You may need to restart your session for it to work.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Adding a directory to your path is really easy. The following command adds the ~\/script_folder to our PATH paths. Once run, we&#8217;ll be able to call any script in the script folder like it was a system utility. PATH=&#8221;$HOME\/script_folder\/:$PATH&#8221; If &hellip; <a href=\"https:\/\/www.incredigeek.com\/home\/add-directory-to-path-in-linux\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[7,1093,173,166],"class_list":["post-4436","post","type-post","status-publish","format-standard","hentry","category-linux","tag-linux-2","tag-path","tag-script","tag-terminal"],"_links":{"self":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4436","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/comments?post=4436"}],"version-history":[{"count":1,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4436\/revisions"}],"predecessor-version":[{"id":4437,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/posts\/4436\/revisions\/4437"}],"wp:attachment":[{"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/media?parent=4436"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/categories?post=4436"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.incredigeek.com\/home\/wp-json\/wp\/v2\/tags?post=4436"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}