export: set an export attribute for shell variables
export [-n] [NAME[=VALUE]]...
Options you will use
-n- Remove the export attribute.
-p- List all exported variables.
Gotchas
- Without export a variable exists only in THIS shell; child processes never see it.
Taught in
- 17.3 The speed kit, and the shape of every kubectl command
- 24.1 Why a secrets manager, and your first Vault
- 24.34 Terraform and Vault: the vault provider, and secrets in state
- 32.24 Access to storage: keys, SAS, stored access policies, data roles and firewalls
- 32.29 Protecting blob data: soft delete, versioning, lifecycle and object replication
- 34.2 The AWS CLI v2: install, configure, profiles and the credential chain
- 38.1 RDS: a managed PostgreSQL you reach by DNS
Try export in a real terminal Free, in your browser - a real Ubuntu terminal to try it in, with missions that check your work.