How to set environment variable in linux permanently Code Example
how to set environment variable in linux permanently
#open terminal and type:
$ nano .bashrc
#scroll to the bottom of the script and type:
export = ''
#e.g
export ANDROID_SDK_ROOT='/home/<$USER>/Android/Sdk'
#once you,re finished typing in your variable hit Ctrl+X then press enter
set permanant environemt variable
$EDITOR ~/.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