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

Explain about shebang?

0 Answers  


Where is bash history?

0 Answers  


What are the different methods available to run a shell script?

2 Answers  


Using set -A write a script to print the output of the ls command in 5 columns with two spaces between each column. Pretend that ls does not have multicolumn output.

0 Answers  


What is a shell environment?

0 Answers  






What is the command to find out today's date?

0 Answers  


wats the she bang statment with syntax?

3 Answers  


is this growing field and what is average package in this?

0 Answers  


What are the two files of crontab command?

0 Answers  


How will you pass and access arguments to a script in linux?

0 Answers  


What is sudo command?

0 Answers  


What is shell scripting used for?

0 Answers  


Categories