Skip to content
masterclass Buddy

Linux & Shell · Command

export

export marks shell variables for inclusion in the environment of later commands. It can also assign a value, and export -p prints exported variables in a form suitable for restoring them.

Last updated

Syntax

export name [ = word ] ...
export -p

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • environ
  • execve
  • fork
  • setenv
  • unsetenv
  • man

Source: export(1p) - Linux manual page. Checked 2026-11-03.