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:
“Teaching Black Studies, I find that students are quick to label a black person who has grown up in a predominantly white setting and attended similar schools as not black enough. ...Our concept of black experience has been too narrow and constricting.”
—bell hooks (b. c. 1955)
“In a land which is fully settled, most men must accept their local environment or try to change it by political means; only the exceptionally gifted or adventurous can leave to seek his fortune elsewhere. In America, on the other hand, to move on and make a fresh start somewhere else is still the normal reaction to dissatisfaction and failure.”
—W.H. (Wystan Hugh)
“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)