Online Linux Terminal Logo
OnlineLinuxTerminal
Éditeurs et shellCLI Manual

$export

Set and export environment variables to child shell processes.

Syntaxe de la commandePOSIX Standard
export [NAME[=VALUE]...]
Communauté Linux2.4k En ligne

Échangez avec des utilisateurs Linux, apprenez des commandes et téléchargez des PDF.

Essayer en direct dans le bac à sable interactif

Simulation côté client sans installation avec retour instantané.

Ouvrir dans le terminal plein écran ↗
bash — terminal

Aperçu et fonctionnement

`export` marks shell variables to be exported to the environment of subsequently executed child commands and subshells.

Options et drapeaux courants

Flag / OptionDescription
-pDisplay a list of all exported variables in the current shell.

Exemples pratiques du monde réel

#1Export an environment variable
export NODE_ENV=production && echo $NODE_ENV

Sets NODE_ENV to production and verifies with echo.