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
What are the 3 standard streams in linux?
Why are shell scripts used?
Why are there shells on the beach?
What is .sh file in mac?
What is a boot block?
What is awk in shell scripting?
How to open a read-only file in the shell?
What is the use of echo in shell script?
What is the difference between scripting and coding?
How does shell scripting work?
What is the purpose of scripting?
What is the difference between break and continue commands?
How can I send a mail with a compressed file as an attachment?
What is the lifespan of a variable inside a shell script?
How do I open the shell in cmd?