How To Add To Linux Path?
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 session and type the following command to open the bash_profile file in the nano editor:
$ nano ~/.bash_profile
2. Scroll to the end of the file and enter the path you want to add to the list of paths available to the system. For example:
export PATH=$PATH:/home/user/myFolder
3. Save and close the file.
4. Enter the following command to apply the changes made
: $ source ~/.bash_profile
5. The new path is now available to the system and can be accessed from any command line.