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
What does $$ mean in shell script?
How are shells born?
write a shell script to check the failed jobs?
How do I read a .sh file?
What is the conditional statement in shell scripting?
Given a file find the count of lines containing the word "abc".
Write a script to print the first 10 elements of fibonacci series.
Write a command sequence to find all the files modified in less than 2 days and print the record count of each.
What is ms powershell?
What shell is bin sh?
What is the crontab?
How do I debug a shell script?
Write down the syntax of "for " loop
What is the significance of $#?
Determine the output of the following command: [ -z “” ] && echo 0 || echo 1