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

Write down the syntax for all the loops in shell scripting.

0 Answers  


How do I run a shell script on a mac?

0 Answers  


write a shell script that counts a number of unique word contained in the file and print them in alphabetical order line by line?

6 Answers   IBM, Wipro,


What are the additional egrep symbols?

2 Answers  


What is basename in shell script?

0 Answers  


What is shell variable?

0 Answers  


What shell is bin sh?

0 Answers  


How do I run a .sh file on mac?

0 Answers  


c program which accept one argument as a directory name and prints all the file name along with its inode number and total count of the file in directory

1 Answers  


Is shell and terminal the same?

0 Answers  


How to modify the PATH variable and make it executable?

3 Answers   Mind Tree,


What language is bash written in?

0 Answers  


Categories