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:
“When I consider the clouds stretched in stupendous masses across the sky, frowning with darkness or glowing with downy light, or gilded with the rays of the setting sun, like the battlements of a city in the heavens, their grandeur appears thrown away on the meanness of my employment; the drapery is altogether too rich for such poor acting. I am hardly worthy to be a suburban dweller outside those walls.”
—Henry David Thoreau (18171862)
“Maturity involves being honest and true to oneself, making decisions based on a conscious internal process, assuming responsibility for ones decisions, having healthy relationships with others and developing ones own true gifts. It involves thinking about ones environment and deciding what one will and wont accept.”
—Mary Pipher (20th century)
“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)