<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>https://wiki-de.moshellshocker.dns64.de/index.php?action=history&amp;feed=atom&amp;title=Env</id>
	<title>Env - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="https://wiki-de.moshellshocker.dns64.de/index.php?action=history&amp;feed=atom&amp;title=Env"/>
	<link rel="alternate" type="text/html" href="https://wiki-de.moshellshocker.dns64.de/index.php?title=Env&amp;action=history"/>
	<updated>2026-05-29T00:19:26Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in Wikipedia (Deutsch) – Lokale Kopie</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://wiki-de.moshellshocker.dns64.de/index.php?title=Env&amp;diff=1459420&amp;oldid=prev</id>
		<title>imported&gt;Messerjokke79: HC: Entferne Kategorie:GNU core utilities; Ergänze Kategorie:GNU Core Utilities</title>
		<link rel="alternate" type="text/html" href="https://wiki-de.moshellshocker.dns64.de/index.php?title=Env&amp;diff=1459420&amp;oldid=prev"/>
		<updated>2018-09-23T18:22:26Z</updated>

		<summary type="html">&lt;p&gt;&lt;a href=&quot;/index.php?title=WP:HC&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;WP:HC (Seite nicht vorhanden)&quot;&gt;HC&lt;/a&gt;: Entferne &lt;a href=&quot;/index.php?title=Kategorie:GNU_core_utilities&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Kategorie:GNU core utilities (Seite nicht vorhanden)&quot;&gt;Kategorie:GNU core utilities&lt;/a&gt;; Ergänze &lt;a href=&quot;/index.php/Kategorie:GNU_Core_Utilities&quot; title=&quot;Kategorie:GNU Core Utilities&quot;&gt;Kategorie:GNU Core Utilities&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{SEITENTITEL:env}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;env&amp;#039;&amp;#039;&amp;#039; (von {{enS|environment}} ‚Umgebung‘) ist ein [[Unix]]-Befehl, der entweder eine Liste der [[Umgebungsvariable]]n anzeigt oder ein anderes Programm in einer anderen Umgebung ausführt, ohne die Variablen der aktuellen Umgebung zu ändern. Mittels &amp;#039;&amp;#039;env&amp;#039;&amp;#039; können Umgebungsvariablen geändert, ergänzt oder gelöscht werden.&lt;br /&gt;
&lt;br /&gt;
Daneben kann &amp;#039;&amp;#039;env&amp;#039;&amp;#039; auch dazu verwendet werden, ein [[Shell-Skript]] mit dem richtigen [[Interpreter]] auszuführen, wenn der genaue Pfad zum Interpreter nicht bekannt ist. In diesem Fall wird die eigentliche Funktion von &amp;#039;&amp;#039;env,&amp;#039;&amp;#039; die Arbeit an den Umgebungsvariablen, nicht genutzt.&lt;br /&gt;
&lt;br /&gt;
== Beispiele ==&lt;br /&gt;
Aufruf einer neuen [[Unix-Shell|Shell]] mit leerer Umgebung:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
env - /bin/sh&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Aufruf der [[X Window|X-Window]]-Anwendung &amp;#039;&amp;#039;xcalc&amp;#039;&amp;#039;, wenn sie auf einem anderen Bildschirm erscheinen soll:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
env DISPLAY=foo.bar:1.0 xcalc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Ein [[Python (Programmiersprache)|Python]]-Skript, das unabhängig vom Pfad des Python-Interpreters läuft:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
#!/usr/bin/env python3&lt;br /&gt;
print(&amp;quot;Hallo Welt&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Weblinks ==&lt;br /&gt;
* {{man||env|posix|set the environment for command invocation}}&lt;br /&gt;
* {{man|1|env|bsd|set and print environment}}&lt;br /&gt;
* {{man|1|env|gnu|ein Programm in einer veränderten Umgebung laufen lassen}}&lt;br /&gt;
&lt;br /&gt;
{{Navigationsleiste Befehle der GNU core utilities}}&lt;br /&gt;
[[Kategorie:Unix-Software]]&lt;br /&gt;
[[Kategorie:GNU Core Utilities]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Messerjokke79</name></author>
	</entry>
</feed>