export

Linux · Terminal · available in the simulator

What it does

Set an environment variable and export it to child processes.

Syntax

export [nombre[=valor]]

Options and parameters

  • -p

    List all exported variables.

  • nombre=valor

    Set the variable and export it to child processes.

    export PATH=$PATH:/opt/bin

Usage examples

  • export PATH=$PATH:/opt/bin
Practise export

Related commands