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 is the way to do multilevel if-else's in shell scripting?
c program to display the information of given file similar to givan by the unix or linux command ls -l
What is basename 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.
How will you emulate wc –l using awk?
What is a shell environment?
What is bash coding?
Write a command sequence to find the count of each word?
Give some situations where typing error can destroy a program?
How do we create command aliases in a shell?
What is the equivalent of a file shortcut that we have a window on a linux system?
Which scripting language is best for automation?
I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.
Explain about login shell?
Explain about debugging?