linux env variable code example
Example 1: print environment variables linux
ENV_VAR="hello world"
printenv ENV_VAR
Example 2: env variable bash
#print enviornment variable bash
echo $TEST_VAR
Example 3: linux set environment variable
# Linux - Bash
# syntax
# export *=*;
# example
export ORACLE_SID='sales_database';
Example 4: set environment variable linux
export JAVA_HOME=/opt/openjdk11