What are environment variables?

Answers were Sorted based on User's Feedback



What are environment variables?..

Answer / 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

What are environment variables?..

Answer / ashu

Environment variables are a set of dynamic values that can
affect the way running processes will behave on a computer.

EX:

PATH,HOME,%TEMP%, date etc are environmental variables,



Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More Shell Script Interview Questions

What is the use of script interpreter in shell scripting?

3 Answers  


There are three departments A,B and C.Write a query to display the names of all the persons( in departments other than A) who are paid higher than the person receiving the lowest salary in DEPT A

1 Answers   Wipro,


What is awk in shell script?

0 Answers  


What is eval in shell script?

0 Answers  


Please anyone suggest atleast 2 good training institutes in Hyderabad, INDIA where i can learn unix shell scripting.

1 Answers  






What is the fastest scripting language?

0 Answers  


What is "test"? How it is used in shell scripting?

2 Answers  


What are different types of shell?

0 Answers  


how to create purchase order

2 Answers  


What does it mean to debug a script?

0 Answers  


How does path variable work?

0 Answers  


How do I debug a shell script?

0 Answers  


Categories