Answers for "how to set environment variable in linux permanently"

2

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
Posted by: Guest on June-15-2020
0

how to set environment variable in linux permanently

#open terminal and type:
$ nano .bashrc

#scroll to the bottom of the script and type:
export <place variable name in here> = '<place variable value here>'

#e.g
export ANDROID_SDK_ROOT='/home/<$USER>/Android/Sdk'

#once you,re finished typing in your variable hit Ctrl+X then press enter
Posted by: Guest on August-14-2021
3

linux set environment variable

# Linux - Bash 

# syntax 
# export *<variable-name>=*<variable-value>;

# example 
export ORACLE_SID='sales_database';
Posted by: Guest on May-18-2020
0

how to set environment variables in linux

export JAVA_HOME=/opt/openjdk11
Posted by: Guest on March-04-2021
0

how to set environment variables in linux

vi ~/.bash_profile
Posted by: Guest on March-04-2021

Code answers related to "how to set environment variable in linux permanently"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language