-
Notifications
You must be signed in to change notification settings - Fork 416
export
Deekshith SN edited this page Jan 29, 2021
·
1 revision
The export command in Linux is used for creating environment variables. You can use it like this:
-
export myvaror a shorthand like this to assign it a value immediately: -
export myvar=5You can see the value of exported variables with the echo command: -
echo $myvarTo make the changes permanent, you should add it to the ~/.bashrc file.
NOTE: While the options provided here work on most UNIX systems, some UNIX flavors may have changed their meanings or uses. If you experience an incompatibility with these options, please consult the manual page (see man command) on your system for a list of compatible options.
UNIX