FahamLah

Commands

export NAME=value

export NAME=value

Risk: Safe

What it does

Sets an environment variable for the programs you start here.

When to use it

To give programs a setting without changing their code.

Example

$ export CHEF=Kancil

Stick a note on the wall: CHEF is Kancil.

$ echo $CHEF

Read the note back.

$ env

List every environment variable.