Shell/Bash: linux set env permanent Example

By

Shell/Bash Example: This is the "linux set env permanent" Example. compiled from many sources on the internet by SimpleTutorials.org

linux set env permanent

# for bash
Bash as login shell will load /etc/profile, ~/.bash_profile, ~/.bash_login, ~/.profile in the order
Bash as non-login interactive shell will load ~/.bashrc
Bash as non-login non-interactive shell will load the configuration specified in environment variable $BASH_ENV

$cat ~/.profile
#add lines at the bottom of the file:  
     export LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client64/lib
     export ORACLE_HOME=/usr/lib/oracle/11.2/client64
     
 #OR
 nano /etc/environment



* Summary: This "linux set env permanent" Shell/Bash Example is compiled from the internet. If you have any questions, please leave a comment. Thank you!

Others