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

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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of .sh file?

824


Is bash an operating system?

742


What is difference between bash and shell?

763


How to check if a directory exists?

797


What is a beat in a script?

749


Can we run shell script in windows?

805


How will you emulate wc –l using awk?

1229


What are the disadvantages of shell scripting?

855


What is a program shell?

807


What are different types of shell?

678


What does debug script mean?

741


I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?

976


Explore about environment variables?

793


Write a shell script to get current date, time, user name and current working directory.

856


How to use arguments in a script?

794