Environment Variable - Getting and Setting Environment Variables

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 $HOME

On 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 $HOME

Read more about this topic:  Environment Variable

Famous quotes containing the words setting, environment and/or variables:

    High from the summit of a craggy cliff,
    Hung o’er the deep, such as amazing frowns
    On utmost Kilda’s shore, whose lonely race
    Resign the setting sun to Indian worlds,
    The royal eagle draws his vigorous young
    James Thomson (1700–1748)

    Today the young actors regard their environment with rage and disgust. They regard their Master not as disciples regard their Master, but as slaves regard their Master.
    Judith Malina (b. 1926)

    The variables of quantification, ‘something,’ ‘nothing,’ ‘everything,’ range over our whole ontology, whatever it may be; and we are convicted of a particular ontological presupposition if, and only if, the alleged presuppositum has to be reckoned among the entities over which our variables range in order to render one of our affirmations true.
    Willard Van Orman Quine (b. 1908)