I’m trying to learn that if I have to add export statement to set a variable in a bash_profile file . How would I do that ? For example if I have to add export AX = ‘name’ then should I simply write it at the end of file or do I need to write anything else as well
Share
Simply write
export AS='name'anywhere in your~/.bash_profilefile:This first command adds the line you want to the file (or just use a text editor) the second updates the shells with the new variable.