Difference between revisions of "Printenv"
Jump to navigation
Jump to search
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | |||
{{lc}} | {{lc}} | ||
+ | <code>printenv</code> print all or part of environment. | ||
+ | * https://man7.org/linux/man-pages/man1/printenv.1.html | ||
-- printenv | -- printenv | ||
Line 7: | Line 8: | ||
[[kubectl exec]] -n your_namespace [[your-pod-name]] -- printenv | [[kubectl exec]] -n your_namespace [[your-pod-name]] -- printenv | ||
− | + | [[docker exec]] [[CONTAINER_NAME]] [[env]] | |
+ | docker exec CONTAINER_NAME [[printenv]] | ||
== See also == | == See also == | ||
* {{export}} | * {{export}} | ||
− | * {{ | + | * {{env}} |
[[Category:Linux]] | [[Category:Linux]] |
Latest revision as of 12:15, 14 March 2023
printenv
print all or part of environment.
-- printenv
kubectl exec your-pod-name -- printenv kubectl exec -n your_namespace your-pod-name -- printenv
docker exec CONTAINER_NAME env docker exec CONTAINER_NAME printenv
See also[edit]
Advertising: