Shell
export
Umgebungsvariablen setzen
Ubuntu
CentOS
Debian
SUSE
Fedora
RHEL
Arch
Alpine
macOS
Verifiziert: 2026-03-04
Syntax
$export [options] [name[=value]]
Optionen
-p
-n
-f
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
$export EDITOR=vim
$export -p
$export -n VAR
Typische Anwendungsfälle
?
Standardverwendung
export --help
Hinweis
Macht Variablen für Subprozesse verfügbar.
Export