Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the difference between a shell variable that is
exported and the one that is not exported?

Answers were Sorted based on User's Feedback



What is the difference between a shell variable that is exported and the one that is not exported?..

Answer / madhavi

the major difference between the shell variable that is
exported and not is variable exported using export command
is global to all shell,where as the other shell variables
are local to their respective shells.

Is This Answer Correct ?    8 Yes 0 No

What is the difference between a shell variable that is exported and the one that is not exported?..

Answer / 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

What is the difference between a shell variable that is exported and the one that is not exported?..

Answer / shimpi

Exported variable is like GLOBAL variable which can be used
across teh scripts and UNIX servers.
Whereas Unexported variable can be the used within the
defined script itself.

Is This Answer Correct ?    2 Yes 0 No

What is the difference between a shell variable that is exported and the one that is not exported?..

Answer / narendrasairam

What that makes the difference is its Access Scope.
An exported variable is available across the scrips unlike
an unexported one which is local to the script.

Is This Answer Correct ?    1 Yes 0 No

What is the difference between a shell variable that is exported and the one that is not exported?..

Answer / tony

By default, Shells will only keep all variables to the Shell in which they run. This is good, since it assumes variables are not needed outside of a given script. In most cases, that is correct. But, if you have a script that you want to use to set Shell variables, it must be exported in some way. Alternative ways to export variables, is to call a script with "source" or just with a dot and a whitespace.

Is This Answer Correct ?    0 Yes 0 No

What is the difference between a shell variable that is exported and the one that is not exported?..

Answer / guest

Chile process will inharite the variable and its value v/s
will not inharit

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More Shell Script Interview Questions

How do you rename the files(*.sh) with file names containing space in it?for example "interview question.sh" needs to rename to "interview-question.sh". Appreciate your inputs.Thanks.

5 Answers   Wells Fargo,


How important is shell scripting?

0 Answers  


What is the use of "$#" in shell scripting?

0 Answers  


What does $1 mean in bash?

0 Answers  


How do I run a .sh file on mac?

0 Answers  


How to check if the previous command was run successfully?

0 Answers  


what does "kill -9" and "kill -1" do

2 Answers   Amazon,


What makes c shell a more preferable option than the bourne shell?

0 Answers  


why did you apply to shell

3 Answers   Shell,


Explain about gui scripting?

0 Answers  


c program which accept one argument as a directory name and prints all the file name along with its inode number and total count of the file in directory

1 Answers  


Hi, I want to practise Unix korn shell scripting which i learnt 2 yr bfr. plz suggest software i can use to practise.

1 Answers  


Categories