45
Q:

bash set environment variable

export VARNAME="my value"      # shorter, less portable version
4
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 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