Environment Variable - Getting and Setting Environment Variables

Getting and Setting Environment Variables

The variables can be used both in scripts and on the command line. They are usually referenced by putting special symbols in front of or around the variable name. For instance, to display the user home directory, in most scripting environments, the user has to type:

echo $HOME

On DOS, OS/2 or Windows systems, the user has to type this:

echo %HOME%

In Windows PowerShell, the user has to type this:

Write-Output $HOME

Read more about this topic:  Environment Variable

Famous quotes containing the words setting, environment and/or variables:

    Many working mothers feel guilty about not being at home. And when they are there, they wish it could be perfect.... This pressure to make every minute happy puts working parents in a bind when it comes to setting limits and modifying behavior.
    Cathy Rindner Tempelsman (20th century)

    People between twenty and forty are not sympathetic. The child has the capacity to do but it can’t know. It only knows when it is no longer able to do—after forty. Between twenty and forty the will of the child to do gets stronger, more dangerous, but it has not begun to learn to know yet. Since his capacity to do is forced into channels of evil through environment and pressures, man is strong before he is moral. The world’s anguish is caused by people between twenty and forty.
    William Faulkner (1897–1962)

    Science is feasible when the variables are few and can be enumerated; when their combinations are distinct and clear. We are tending toward the condition of science and aspiring to do it. The artist works out his own formulas; the interest of science lies in the art of making science.
    Paul Valéry (1871–1945)