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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the two files of crontab command?

723


What does it mean by #!/Bin/sh or #!/Bin/bash at the beginning of every script?

657


What are "c" and "b" permission fields of a file?

645


How to check if the previous command was run successfully?

665


Suppose you execute a command using exec, what will be the status of your current process in the shell?

681






Explain how you Automate your application using Shell scripting.

1926


I have to write Shells (Linux + Unix)for publishing packages and reports. Is it possible ? What are the differents executable programs ineed to call ?

1749


What is the difference between break and continue commands?

665


How to get script name inside a script?

651


c program to implement unix/linux command to block the signal ctrl-c and ctrl-\ signal during the execution ls -l|wc -l

3239


What is the conditional statement in shell scripting?

742


What lives in a shell?

626


write a shell script to generate a alert ? like when ur birthday came then generate a alert ur birthday is today like that ?

3667


Is powershell a language?

655


How do we create command aliases in a shell?

621