How to create environment variables?What are the conditions
for creating variables?



How to create environment variables?What are the conditions for creating variables?..

Answer / siba sankar nayak

We can create environment variable by using export command.
(Also by using set, but difference between set and export
is the which has been exported is being availabe in
cloned/child shell.) export VAR="Welcome"
But problem is this variable has life span of sesson only.
For making it permananet we need to put that in login
script.

Is This Answer Correct ?    3 Yes 0 No

Post New Answer

More Shell Script Interview Questions

madhar chod unix ke 10 commands dhang se likh nahi sakta hai

0 Answers   Cap Gemini,


Differentiate between ‘ and ” quotes.

0 Answers  


Hi Friends, I am currently Undergoing Course On Testing.I am Planning To Keep Fake Resume.Can any One tell me the ways to Prepare i.e, Real Time experience For Manual Testing. With Regards, Vikram

1 Answers  


Determine the output of the following command: name=shubham && echo ‘my name is $name’.

0 Answers  


What is an sh file?

0 Answers  






How to open a read-only file in the shell?

0 Answers  


What is the basic difference you find between a shell script and perl?

3 Answers   Yahoo,


What is the difference between a 'thread' and a 'process'?

3 Answers  


What is the syntax of "expr" command?

2 Answers  


What are types of shells?

0 Answers  


I want to read all input to the command from file1 direct all output to file2 and error to file 3, how can I achieve this?

1 Answers  


What is shell application?

0 Answers  


Categories