At times you will need to add an executable to your system path so that you can run it from any directory. To do this:
- Open a terminal window by going to Applications > Accessories > Terminal.
- In the Terminal Window, navigate (cd) to the /etc directory, then enter:
sudo gedit environment
After entering your password, the environment file opens in a text editor.
- Add whatever paths you need to the PATH environment variable. Make sure each entry is separated by colons.
- Click Save to save the file.