>_ linuxcommand.dev
Startseite export
Shell

export

Umgebungsvariablen setzen

Syntax
$export [options] [name[=value]]
Optionen
-p
-n
-f
Beispiele
Beispiele
$export PATH=/Users/sebastian/Library/PhpWebStudy/alias:/Users/sebastian/Library/PhpWebStudy/env/nginx:/Users/sebastian/Library/PhpWebStudy/env/nginx/sbin:/Users/sebastian/Library/PhpWebStudy/alias:/Users/sebastian/Library/PhpWebStudy/env/nginx:/Users/sebastian/Library/PhpWebStudy/env/nginx/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Applications/Little Snitch.app/Contents/Components:/opt/homebrew/bin:/Users/sebastian/.lmstudio/bin:/Users/sebastian/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand:/Users/sebastian/.lmstudio/bin:/opt/bin
Beispiele
$export EDITOR=vim
Beispiele
$export -p
Beispiele
$export -n VAR
Typische Anwendungsfälle
PATH erweitern
Programme konfigurieren
Umgebung anpassen
Hinweis Macht Variablen für Subprozesse verfügbar.
Export