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

madhar chod unix ke 10 commands dhang se likh nahi sakta hai

0 Answers   Cap Gemini,


If one dont know how to create a script then how he/she can use the QTP?

1 Answers  


How can I set the default rwx permission to all users on every file which is created in the current shell?

0 Answers  


How would you replace the n character in a file with some xyz?

7 Answers  


What lives in a shell?

0 Answers  






How to change our default shell?

5 Answers  


How do you print the output the same string which is typed in command line. how do you write the shell script or command for this. if i entered "Hello" in command line, it should print 'Hello', if i say "Hello Welcome", i should get the "Hello Welcome" as output.?

3 Answers   IBM, Symphony,


How does shell scripting work?

0 Answers  


What does debug script mean?

0 Answers  


What is the fastest scripting language?

0 Answers  


What is the use of break command?

0 Answers  


How do I run a powershell script?

0 Answers  


Categories