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 significance of $#?

0 Answers  


What is shell prompt?

0 Answers  


In which variable prompt value is stored?

2 Answers  


how is the oppurtunities for unix in the software

1 Answers  


How to redirect both standard output and standard error to the same location?

0 Answers  






What is the equivalent of a file shortcut that we have a window on a linux system?

0 Answers  


What are the four fundamental components of every file system on linux?

0 Answers  


What is the use of script interpreter in shell scripting?

3 Answers  


Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?

0 Answers   TCS,


What language is bash?

0 Answers  


Determine the output of the following command: name=shubham && echo ‘my name is $name’.

0 Answers  


What are filters explain sort with all the options available?

0 Answers  


Categories