mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-11 02:47:13 +00:00
Update cheatsheets
This commit is contained in:
25
linux/export
Normal file
25
linux/export
Normal file
@@ -0,0 +1,25 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# export
|
||||
|
||||
> Export shell variables to child processes.
|
||||
> More information: <https://www.gnu.org/software/bash/manual/bash.html#index-export>.
|
||||
|
||||
- Set an environment variable:
|
||||
|
||||
`export {{VARIABLE}}={{value}}`
|
||||
|
||||
- Unset an environment variable:
|
||||
|
||||
`export -n {{VARIABLE}}`
|
||||
|
||||
- Export a function to child processes:
|
||||
|
||||
`export -f {{FUNCTION_NAME}}`
|
||||
|
||||
- Append a pathname to the environment variable `PATH`:
|
||||
|
||||
`export PATH=$PATH:{{path/to/append}}`
|
||||
Reference in New Issue
Block a user