Online Linux Terminal Logo
OnlineLinuxTerminal
Editoren & ShellCLI Manual

$export

Set and export environment variables to child shell processes.

BefehlssyntaxPOSIX Standard
export [NAME[=VALUE]...]
Linux-Community2.4k Online

Tausche dich mit Linux-Nutzern aus, lerne Befehle und lade PDF-Cheatsheets herunter.

Live im interaktiven Terminal ausprobieren

Client-seitige Simulation ohne Installation mit sofortigem Feedback.

Im Vollbild-Terminal öffnen ↗
bash — terminal

Überblick & Funktionsweise

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

Wichtige Optionen und Flags

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

Praktische Anwendungsbeispiele

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

Sets NODE_ENV to production and verifies with echo.