Env variables

  1. Export env script

source  set_env.sh

2. Show current env

env

To set variable only for current shell:

VARNAME="my value"

To set it for current shell and all processes started from current shell:

export VARNAME="my value"      

Last updated

Was this helpful?