How to create environment variables?What are the conditions
for creating variables?
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 |
What is an sh file?
What is an inode block?
How do I run a .sh file on mac?
How do I start a shell script?
What is subshell?
shell script for reverse the string
How can any user find out all information about a specific user like his default shell, real-life name, default directory, when and how long he has been using the system?
How to check if the previous command was run successfully?
How will you list only the empty lines in a file (using grep)?
What is the need of including script interpreter in your shell script?
What is a shell script? Can you name some of its advantages?
Is bash a shell script?