I know that, Shell variables are not available to the parent or child shells and Shell environments are available for child shells.
When I want to permanently add current directory to PATH I can do it in 2 ways:
[sinoosh@localhost ~]$ vi ~/.bash_profile
2-without export command
And then logout i see the same result as normal way
there is not different between "1"&"2" . can we say the
export command is useful for that time we do not want permanently add to environment variables?
What's happening here?
~/.bash_profiledoes not affect the graphical environment on a desktop. Therefore I wouldn't call it the "normal way". Please take a look here: help.ubuntu.com/community/…