What are environment variables?

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is echo $shell?

810


i have 2 tables 4 colums table 1 respective values a1 6, a2 8,a3 9,a4 14 & table 2 respective values a1 6, a2 8, a3 9, a4 12. if compare 2 tables 3 colums values same then 4th column values 1)Qes diff >5 then (5 * diff value ) 2)Qes diff <5 the 5 3)Qes diff 5 then 5 print respective values..

1953


What does it mean to debug a script?

779


What is .sh file in mac?

751


What does chmod do?

756


How would you compare the strings in a shell script?

736


Explain about debugging?

797


What is shift command in shell script?

712


How do I run a shell script on a mac?

840


What is the way to do multilevel if-else's in shell scripting?

945


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.

2234


Explain about "s" permission bit in a file?

795


Why is the use of shell script?

736


How do I read a .sh file?

746


c program which behaves like a shell(command interpreter). it has its own prompt say "NewShell$".any normal shell command is executed from your shell by starting a child process to execute a system program corrosponding to the command

4936