printenv: add page (#2400)
This commit is contained in:

committed by
Starbeamrainbowlabs

parent
e29f371ac1
commit
e1c4e34b45
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}}`
|
Reference in New Issue
Block a user