What is the difference between a shell variable that is
exported and the one that is not exported?
Answer Posted / seshadri sethi
The Shell variable which is exported would available to all
the programs outside the Shell also. And the shell variable
which is not exported, would available for that shell or for
the shell program only, in which the variable is declared.
Export LANG=C
will make the variable LANG the global variable, put it into
the global environment. All other processes can use it.
LANG=C
will change the value only in the current script.
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Give some situations where typing error can destroy a program?
In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?
Rewrite the command to print the sentence and convert the variable to plural: echo “i like $variable”.
What is the difference between break and continue commands?
What does path stand for?
What is the default ubuntu terminal?
What is a batch file used for?
Write a command sequence to find the count of each word?
Is shell scripting a programming language?
What is shell variable?
What is eval in shell script?
What is shell terminal?
What are the types of script?
How to set an array in linux?
Print the 10th line without using tail and head command.