HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

export — Export shell variables to child processes. More information: <https://manned.org/export.1posix>.

Submitted by: @import:tldr-pages··
0
Viewed 0 times
shellcommandchildexportclivariablesprocesses

Problem

How to use the export command: Export shell variables to child processes. More information: <https://manned.org/export.1posix>.

Solution

export — Export shell variables to child processes. More information: <https://manned.org/export.1posix>.

Set an environment variable:
export {{VARIABLE}}={{value}}


Append a pathname to the environment variable $PATH:
export PATH=$PATH:{{path/to/append}}

Code Snippets

Set an environment variable

export {{VARIABLE}}={{value}}

Append a pathname to the environment variable `$PATH`

export PATH=$PATH:{{path/to/append}}

Context

tldr-pages: common/export

Revisions (0)

No revisions yet.