Difference between revisions of "Printenv"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Draft}}
+
{{lc}}
 +
<code>printenv</code> print all or part of environment.
 +
* https://man7.org/linux/man-pages/man1/printenv.1.html
  
 +
-- 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 ==
 
== See also ==
 
* {{export}}
 
* {{export}}
* {{Linux}}
+
* {{env}}
  
  
 
[[Category:Linux]]
 
[[Category:Linux]]

Latest revision as of 12:15, 14 March 2023

Advertising: