What is the purpose of the bash built-in export command?

What is the purpose of the bash built-in export command?

What is the purpose of the bash built-in export command?

A.
To allow disks to be mounted remotely.

B.
To run a command as a process in a sub-shell.

C.
To make the command history available to sub-shells.

D.
To setup environment variables for applications.

E.
To share NFS partitions for use by other systems on the network.

Explanation:
Without export, a variable will only be visible in the process that defined it. Exported variables are also visible in all child processes that are created after the export.



Leave a Reply 0

Your email address will not be published. Required fields are marked *