export
Quick Reference
Command Name:
export
Category:
shell builtin
Platform:
Linux/Unix
Basic Usage:
Common Use Cases
- 1
Environment configuration
Make variables available to all child processes
- 2
Program configuration
Set up environment variables to control program behavior
- 3
Development setup
Configure development environments with appropriate variables
- 4
Path management
Modify PATH and other search path variables for command lookup
Syntax
export [-fn] [name[=value] ...] or export -p
Options
Option | Description |
---|---|
-f |
Names refer to functions rather than variables |
-n |
Remove the export property from each name |
-p |
Display a list of all exported variables and functions |
Examples
How to Use These Examples
The examples below show common ways to use the export
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.