How To Set a Path In 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.
In order to set a path in Linux, you need to use the command line. First, you will need to find the directory in which the executable you want to run is located. This can be done with the ‘find’ command. Then, you will need to use the ‘export’ command to add the directory to the $PATH environment variable. For example, if you wanted to add the directory ‘/usr/local/bin’ to the path, you would type the following command:
export PATH=$PATH:/usr/local/bin