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
What are different types of shell?
How will you find the 99th line of a file using only tail and head command?
What can you do with powershell?
How do I read a .sh file?
Explain about shebang?
What does path stand for?
Set up a Sev 2 alert when the Primary WA service fails. A windows batch script needs to be created that will monitor the WA service on the Primary and when the service stops/fails a Sev 2 TT is generated for a particular team ?
Write a command sequence to find the count of each word?
What shell is bin sh?
I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?
What language is shell scripting?
What is shell prompt?
How to print pid of the current shell?
How will you connect to a database server from linux?
How will you print the login names of all users on a system?