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 $HOMEOn 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 $HOMERead more about this topic: Environment Variable
Famous quotes containing the words setting, environment and/or variables:
“May we two stand,
When we are dead, beyond the setting suns,
A little from other shades apart,
With mingling hair, and play upon one lute.”
—William Butler Yeats (18651939)
“Autonomy means women defining themselves and the values by which they will live, and beginning to think of institutional arrangements which will order their environment in line with their needs.... Autonomy means moving out from a world in which one is born to marginality, to a past without meaning, and a future determined by othersinto a world in which one acts and chooses, aware of a meaningful past and free to shape ones future.”
—Gerda Lerner (b. 1920)
“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 (18711945)