[pappy@chmodx]:$ man export

$ export

Set an environment variable for child processes

DOCUMENTEDShell builtinsUbuntu 24.04 LTS baseline

Synopsis

export [-fn] [name[=value] ...] or export -p

What it does

Examples

Set and export a variable
export EDITOR=vim
Export an existing variable
export PATH

Important details

These examples are intentionally conservative. Command behavior can still depend on filesystem state, permissions, locale, shell, installed package version, and other system configuration. For exact option semantics, the linked authoritative documentation is the source of truth.