What are environment variables?
Answers were Sorted based on User's Feedback
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 |
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 |
Why is used in shell scripting?
How do I open the shell prompt?
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
How to create environment variables?What are the conditions for creating variables?
how to print the matrix form of 2-d, 3-d arrays in unix c shell scripts ?
What is inside a seashell?
What is bash command used for?
What is the equivalent of a file shortcut that we have a window on a linux system?
What is the meaning of $1 in shell script?
How do I start a shell script?
shell script for reverse the string
Hello all, This is my assignment on shell scripting, can anyone help me regarding this ? Create a shell script which connects to the database In second shell script include the first script for the DB connection Create a table (PRADEEP_DATA) with 2 columns (name, value) In Third shell script include the first script for the DB connection And insert/delete the values from the Table, by accepting input from the user This functionality should be a menu driven Program: 1) Insert to the database a. Name b. value 2)Delete from the database a.Name b.value Exception handling needs to be taken care.