How Do I Permanently Export My Path in Linux?
Contents How Do I Permanently Set My Java Path in Linux? to Set Path on Linux Change to Your Home Directory. Cd $Home. Open The. Bashrc File. Add the Following...
Contents
How do I permanently set my Java path in Linux?
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. export PATH=/usr/java/<JDK Directory>/bin:$PATH.
- Save the file and exit. Use the source command to force Linux to reload the .
Must Read
What is export path in Linux?
export PATH=”~/.composer/vendor/bin:$PATH” export shell built-in (meaning there is no /bin/export ,it’s a shell thing) command basically makes environment variables available to other programs called from bash ( see the linked question in Extra Reading ) and the subshells.