What are environment variables?

Answer Posted / subbareddy

Each process in Unix has its own set of environment
variables. They're called environment variables because the
default set of such variables consists mostly of session-
wide variables used for configuration purposes.

From the point of a Unix shell though, environment
variables can be accessed the same way as any other
variable.

Common environment variables in Unix
Most well known environment variables are the following:

USER - username of a Unix user
HOME - full path to a user's home directory
TERM - terminal or terminal emulator used by a current user
PATH - list of directories searched for executable files
when you type a command in Unix shell
PWD - current directory

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why is used in shell scripting?

554


What is the crontab?

543


What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?

559


What does sh mean?

616


How many fields are present in a crontab file and what does each field specify?

578






What is web script?

578


What language is bash?

489


What is the use of "$?" Sign in shell script?

611


How to calculate the number of passed arguments?

552


Write down the syntax of "for " loop

607


What are the 3 standard streams in linux?

570


What does the sh command do?

604


What are the disadvantages of shell scripting?

636


Explain about echo command?

622


Explain about the exit command?

566