How to create environment variables?What are the conditions
for creating variables?
Answer Posted / 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 View All Answers
Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.
What are the types of script?
What is a boot block?
What is a scripting language simple definition?
write a shell script to check the failed jobs?
What is c in shell script?
Explain about shebang?
What language is used in terminal?
Explain about non-login shell files?
Write a shell script to get current date, time, user name and current working directory.
What is inside a seashell?
Which scripting language is best for automation?
What does $$ mean in shell script?
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.
What is scripting autism?