How To Add To Path Environment Variable Ubuntu?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Open a terminal window and type “nano ~/.profile”.
2. Add the following line to the file: export PATH=”$PATH:/path/to/bin”.
3. Replace “/path/to/bin” with the actual path to the directory containing the executable files you want to add to the PATH environment variable.
4. Save the file and exit the editor.
5. Finally, run the following command to reload the profile and make the changes take effect: source ~/.profile.