mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-09 13:15:57 +02:00
export: add page
This commit is contained in:
parent
07d83931ec
commit
d1c8039a91
1 changed files with 15 additions and 0 deletions
15
pages/common/export.md
Normal file
15
pages/common/export.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# export
|
||||||
|
|
||||||
|
> Command to set environment variables.
|
||||||
|
|
||||||
|
- Set a new environment variable:
|
||||||
|
|
||||||
|
`export {{VARIABLE}}={{value}}`
|
||||||
|
|
||||||
|
- Echo the value of an environment variable (don't forget the Dollar sign):
|
||||||
|
|
||||||
|
`echo {{$VARIABLE}}`
|
||||||
|
|
||||||
|
- Append something to the PATH variable:
|
||||||
|
|
||||||
|
`export PATH=$PATH:{{/path/to/append}}`
|
Loading…
Add table
Reference in a new issue