export VAR=value

Category: Shell & Bash

export VAR=value

Set an environment variable and export to child processes

Creates an environment variable and makes it available to any programs you launch from this shell. 'Export' shares it with child processes.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.