How To Add To Path Linux?
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 your ~/.bashrc file in your favorite text editor.
2. Add the following line to the end of the file:
export PATH=”$PATH:/path/to/your/program”
3. Save and close the file.
4. Run the following command in your terminal:
source ~/.bashrc
5. Verify the changes by running the following command in your terminal:
echo $PATH
You should now see the path of your program in the output.