3
Q:

how to set environment variable using bash

# Linux - Bash

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

# example 
export ORACLE_SID='sales_database';
1
# set variable environment
export fullname="restu wahyu saputra"
echo $fullname
0
export VARNAME="my value"      # shorter, less portable version
0

New to Communities?

Join the community