Answers for "Create permanent env variable"

3

Create permanent env variable

open Bash_profile file `code ~/.bash_profile` or `open -e ~/.bash_profile`
write your variable  ` export VAR_NAME='hello' `
save file and close then close terminal
reopen terminal and echo your variable to confirm `echo $VAR_NAME`
should say hello
Posted by: Guest on April-24-2022

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language