1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00
tldr/pages.zh/common/export.md

13 lines
285 B
Markdown
Raw Permalink Normal View History

2019-02-26 11:12:43 +08:00
# export
> 命令为当前 shell 中的子进程进行环境变量设置。
> 更多信息:<https://manned.org/export.1posix>.
2019-02-26 11:12:43 +08:00
- 设置环境变量:
2019-02-26 11:12:43 +08:00
`export {{变量名}}={{值}}`
2019-02-26 11:12:43 +08:00
- 向环境变量 `PATH` 追加一个路径名:
2019-02-26 11:12:43 +08:00
2019-10-18 10:33:27 +08:00
`export PATH=$PATH:{{追加的 path 路径}}`