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
Write a shell script that adds two numbers if provided as the command line argument and if the two numbers are not entered throws an error message.
How will you print the login names of all users on a system?
How to pass an argument to a script?
What is shell and shell script?
Is shell scripting a language?
What is a batch file used for?
What are the advantages of shell script?
How do you know which shell I am using?
determine the output of the following command: echo ${new:-variable}
What is another name for a bash shell script that you might see?
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..
How to debug the problems encountered in the shell script/program?
Print the 10th line without using tail and head command.
What is difference between bash and shell?
Why are shell scripts used?