kolssw
0
Q:

bash get environment variable

#print enviornment variable bash
echo $TEST_VAR
1
Just type next command to list all environments varialbes in terminal:
printenv
1
# Linux - Bash

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

# example 
export ORACLE_SID='sales_database';
1
#Set envionrment variable bash
TEST_VAR='Hello World!'
0

New to Communities?

Join the community