If you are using Bash as your terminal, here’s what you need to do:
Edit ~/.bash_profile by adding the following (if you want to set TESTVAR variable to “This_is_a_value” value)
export TESTVAR=This_is_a_value
If you are using Bash as your terminal, here’s what you need to do:
Edit ~/.bash_profile by adding the following (if you want to set TESTVAR variable to “This_is_a_value” value)
export TESTVAR=This_is_a_value
Fine but how can i test it.
Can you say the command to display the value TESTVAR in terminal
Try “
set” command in bash terminal. That should display all env variables set for your session