How to Edit Path in Linux?
Contents to Set Path on Linux Change to Your Home Directory. Cd $Home. Open The. Bashrc File. Add the Following Line to the File. Replace the Jdk Directory...
Contents
To Set PATH on Linux
- Change to your home directory. cd $HOME.
- Open the .bashrc file.
- Add the following line to the file. Replace the JDK directory with the name of your java installation directory.
- Save the file and exit. Use the source command to force Linux to reload the .bashrc file which normally is read only when you log in each time.
How do I edit path?
Windows 7
- From the desktop, right click the Computer icon.
- Choose Properties from the context menu.
- Click the Advanced system settings link.
- Click Environment Variables.
- In the Edit System Variable (or New System Variable) window, specify the value of the PATH environment variable.
How do I change the path in Unix?
Adding a directory to your PATH in bash or sh:
- Edit your ~/.profile file. If you are using the vi editor, the command is vi ~/.profile.
- Add a line to the file that says export PATH=”$PATH:/Developer/Tools”
- Save the file.
- Quit the editor.
- You can check it with echo $PATH.