You Asked: Why Export Is Used in Linux?
Contents

The export command is a built-in utility of Linux Bash shell. It is used to ensure the environment variables and functions to be passed to child processes. … The export command allows us to update the current session about the changes that have been made to the exported variable.

What does export mean in Linux?

export is bash shell BUILTINS commands, which means it is part of the shell. It marks an environment variables to be exported to child-processes. … The export command, on the other hand, provides the ability to update the current shell session about the change you made to the exported variable.

What does export do in terminal?

In general, the export command marks an environment variable to be exported with any newly forked child processes and thus it allows a child process to inherit all marked variables.

James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest