Environment variable

Hi!

Ok, so I'm no programmer and I have basically no experience in these stuff. However I need to work on a thing (I think you call it Framework) called Root. It's a tool used by physicists. In the manual they keep talking about Environment variable. Even thou I searched for what it is on the net, I can never find a explanation that I understand... Can someone point me some book, or site for (really) dummies on this?

Much appreciated :slight_smile:

export TERM=vt100

export VAR='tirwit'

now if you do

# echo $VAR gives tirwit

the value of var wherever you use in script / Command line always contains value tirwit.

unless you do

#unset VAR

This is what you call an environment variable whose value remains contant unless you unset it

And does that value remains if I end my shell's session?

What's this for?:

export TERM=vt100

No that goes once you end / log out from your shell

export TERM is for setting your terminal size when working on a console

So, to that variable to be defined everytime I start a new shell, I need to add the definition of the variable to .bash_profile, right?

By terminal size what do you mean? It's graphical size? Sorry for the noob questions and thanks for your help.

Have a read of:

Environment variables