Difference between revisions of "/usr/bin/env (command)"

From wikieduonline
Jump to navigation Jump to search
 
(31 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{Draft}}
+
<code>env</code > command is included in the <code>[[coreutils]]</code> package.
<code>env</code > command included in the <code>[[coreutils]]</code> package.
 
  
  
#!/usr/bin/env [[bash]]
+
<code>#!/usr/bin/env [[bash]]</code>
  
#![[/usr/bin/]]env [[ansible-playbook]]
+
<code>#![[/usr/bin/]]env [[ansible-playbook]]</code>
  
#!/usr/bin/env [[python]]
+
<code>#!/usr/bin/env [[python3]]</code>
  
 +
<code>#!/usr/bin/env [[python]]</code>
 +
 +
env python
 +
env: ‘python’: No such file or directory
 +
 +
env [[python3]]
 +
[[Python 3.8.10]] (default, Jun  2 2021, 10:49:15)
 +
[GCC 9.4.0] on linux
 +
Type "help", "copyright", "credits" or "license" for more information.
 +
>>> quit
 +
 +
== Errors ==
 +
yarn
 +
env: [[node]]: [[No such file or directory]]
  
 
== Related terms ==
 
== Related terms ==
* <code>[[PATH]]</code>
+
* [[Variables]]: <code>[[PATH]]</code>, <code>[[SHELL]]</code>
 +
* <code>[[.env]]</code>
 +
* <code>[[export]]</code>
 +
* <code>[[direnv]]</code>
 +
* <code>[[fastlane env]]</code>
 +
* [[Azure DevOps]]: <code>[[AWSShellScript@1]]</code>
 +
* <code>[[env_file]]</code>
 +
* <code>[[kubectl set env]]</code>
 +
* [[Kubernetes]] <code>[[Kubernetes, env:|env:]]</code>
 +
* [[GitLab environment variables]], [[GitLab CI/CD variables]]
 +
* <code>artifacts:reports:dotenv</code> <ref>https://docs.gitlab.com/ee/ci/yaml/artifacts_reports.html#artifactsreportsdotenv</ref>
 +
* <code>[[go env]]</code>
 +
* [[Ansible plugin: env]]
 +
* <code>[[os.getenv]]</code>
 +
* <code>[[docker exec]] [[CONTAINER_NAME]] [[env]]</code>
 +
* <code>[[docker exec]] CONTAINER_NAME [[printenv]]</code>
  
 
== See also ==
 
== See also ==
 +
* {{coreutils}}
 
* {{shells}}
 
* {{shells}}
* {{Python}}
+
* {{env}}
  
 
[[Category:Linux]]
 
[[Category:Linux]]

Latest revision as of 09:33, 30 June 2023

Advertising: