{"id":110,"date":"2013-09-18T13:05:44","date_gmt":"2013-09-18T11:05:44","guid":{"rendered":"http:\/\/andreikucharavy.com\/L3Cache\/?p=110"},"modified":"2015-09-04T17:14:20","modified_gmt":"2015-09-04T15:14:20","slug":"correct-way-of-modifying-the-path-variable-in-ubuntu","status":"publish","type":"post","link":"https:\/\/andreikucharavy.com\/L3Cache\/correct-way-of-modifying-the-path-variable-in-ubuntu\/","title":{"rendered":"Correct way of modifying the PATH variable in ubuntu"},"content":{"rendered":"<p>Regardless the fact that many totorials recommend to modify ~.\/bashrc in order ot perform a permanent modification of PATH for a given user, this is not a way to go. According to the <a title=\"ubuntu community\" href=\"https:\/\/help.ubuntu.com\/community\/EnvironmentVariables\">official Ubuntu StackExchange<\/a>, the way to go is to use the\u00a0<strong>~\/.pam_environment<\/strong>\u00a0 folder, which is meant specifically for such modifications.<a href=\"https:\/\/help.ubuntu.com\/community\/EnvironmentVariables\"><br \/>\n<\/a><\/p>\n<p>However, pay attention to the fact that you have to follow the pam_environment-specific synthax and thus type<\/p>\n<pre>PATH DEFAULT=${PATH}:\/path\/to\/wherever\/your\/binaries\/are<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Regardless the fact that many totorials recommend to modify ~.\/bashrc in order ot perform a permanent modification of PATH for a given user, this is not a way to go. According to the official Ubuntu StackExchange, the way to go is to use the\u00a0~\/.pam_environment\u00a0 folder, which is meant specifically for such modifications. However, pay attention <a class=\"read-more\" href=\"https:\/\/andreikucharavy.com\/L3Cache\/correct-way-of-modifying-the-path-variable-in-ubuntu\/\">[&hellip;]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24],"tags":[],"class_list":["post-110","post","type-post","status-publish","format-standard","hentry","category-prog"],"_links":{"self":[{"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/posts\/110"}],"collection":[{"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/comments?post=110"}],"version-history":[{"count":3,"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/posts\/110\/revisions"}],"predecessor-version":[{"id":113,"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/posts\/110\/revisions\/113"}],"wp:attachment":[{"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/media?parent=110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/categories?post=110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/andreikucharavy.com\/L3Cache\/wp-json\/wp\/v2\/tags?post=110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}