set env variables in terminal code example
Example 1: how to create env variable from cmd
set varname
set varname=value
set varname=
set
Example 2: how to set environment variable using bash
# set variable environment
export fullname="restu wahyu saputra"
echo $fullname
Example 3: setting environment variables bash
export VARNAME="my value" # shorter, less portable version