When we set a environment variable in bash we have to
export it. so in future we can use it.(atleast in a continuous session). I understand this.
My question is what exactly doe the
export command does to the variable?
Does it create a temp file somewhere to use it, or it modify some file to save the variable? This is quite confusing.
So basically when we work in shell it is backed up by a environment to process all command and other things and all variables are part of it. When we export a newly created variable in shell, that variable also join the environment.? And in this process not any file gets modified or store that newly variable anywhere.?