I have some environmental variables set in my .profile, and thus the variables can be set automatically when I log in. In some special cases, I also need to change some settings using the command "export", just like:
export OMP_NUM_THREADS=3
When I manually edit an environmental variable, run a software which requires the variable with nohup, and then log out. Does the variable turn back at the moment I exit?