Set env variables

# creates "shell" variable
# not visible to processes started by shell
MONGODB="/usr/local/mongodb/bin"
 
# visible to all the processes started by shell
export MONGODB="/usr/local/mongodb/bin"
 
# windows, use "set" command
set MONGODB="/usr/local/mongodb/bin"

Print env variables

echo $MONGODB
 
# windows, use "%"
echo %MONGODB%