mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-23 03:22:08 +02:00
printenv: add page (#2400)
This commit is contained in:
parent
e29f371ac1
commit
e1c4e34b45
1 changed files with 15 additions and 0 deletions
15
pages/linux/printenv.md
Normal file
15
pages/linux/printenv.md
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# printenv
|
||||||
|
|
||||||
|
> Print values of all or specific environment variables.
|
||||||
|
|
||||||
|
- Display key-value pairs of all environment variables:
|
||||||
|
|
||||||
|
`printenv`
|
||||||
|
|
||||||
|
- Display the value of a specific variable:
|
||||||
|
|
||||||
|
`printenv {{HOME}}`
|
||||||
|
|
||||||
|
- Display the value of a variable and end with NUL instead of newline:
|
||||||
|
|
||||||
|
`printenv --null {{HOME}}`
|
Loading…
Add table
Reference in a new issue