Pages

Wednesday, February 13, 2013

How to set path in ubuntu

To set path for new program you just need to edit .profile or .bash_profile file
which is present in /etc . for example if you want to set path for program xyz
which is present in /usr then export PATH=":/usr/xyz"

don't forget to put ":" before /usr/xyz otherwise it will overwrite the path variable
and path variable will no longer have it's original values.

No comments:

Post a Comment