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:
“Dandyism is the last flicker of heroism in decadent ages.... Dandyism is a setting sun; like the declining star, it is magnificent, without heat and full of melancholy. But alas! the rising tide of democracy, which spreads everywhere and reduces everything to the same level, is daily carrying away these last champions of human pride, and submerging, in the waters of oblivion, the last traces of these remarkable myrmidons.”
—Charles Baudelaire (18211867)
“The poorest children in a community now find the beneficent kindergarten open to them from the age of two-and-a-half to six years. Too young heretofore to be eligible to any public school, they have acquired in their babyhood the vicious tendencies of their own depraved neighborhoods; and to their environment at that tender age had been due the loss of decency and self-respect that no after example of education has been able to restore to them.”
—Virginia Thrall Smith (18361903)
“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)