export VARNAME="my value" # shorter, less portable version
# set variable environment
export fullname="restu wahyu saputra"
echo $fullname
# Linux - Bash
# syntax
# export *<variable-name>=*<variable-value>;
# example
export ORACLE_SID='sales_database';
# Linux - Bash
# syntax
# export *<variable-name>=*<variable-value>;
# example
export ORACLE_SID='sales_database';
export VARNAME="my value" # shorter, less portable version
export JAVA_HOME=/opt/openjdk11
vi ~/.bash_profile
$ export TEST_VAR