UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
first to .bash_profile and then when I couldn't get that to work I add the same lines to etc/profile
After adding the files I open a new terminal session - echo $PATH shows old PATH, so I logged out and back in and got the same results so I rebooted and logged in again. When I edit the files again, the changes are there but still the PATH is the same old stuff. When I do the commands just in a terminal window they work fine.
first to .bash_profile and then when I couldn't get that to work I add the same lines to etc/profile
After adding the files I open a new terminal session - echo $PATH shows old PATH, so I logged out and back in and got the same results so I rebooted and logged in again. When I edit the files again, the changes are there but still the PATH is the same old stuff. When I do the commands just in a terminal window they work fine.
What am I doing wrong?
I think maybe you want to put them in your ~/.bashrc file. That file gets sourced every time you start a shell. ~/.bash_profile only gets sourced on login.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.