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:
“A happy marriage perhaps represents the ideal of human relationshipa setting in which each partner, while acknowledging the need of the other, feels free to be what he or she by nature is: a relationship in which instinct as well as intellect can find expression; in which giving and taking are equal; in which each accepts the other, and I confronts Thou.”
—Anthony Storr (b. 1920)
“White males are the most responsible for the destruction of human life and environment on the planet today.”
—Robin Morgan (b. 1941)
“The variables are surprisingly few.... One can whip or be whipped; one can eat excrement or quaff urine; mouth and private part can be meet in this or that commerce. After which there is the gray of morning and the sour knowledge that things have remained fairly generally the same since man first met goat and woman.”
—George Steiner (b. 1929)