snippetbashTip
export — Export shell variables to child processes. More information: <https://manned.org/export.1posix>.
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.