mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-10-11 08:53:20 +08:00
语法高亮,滚动条美化,设置页面调整
This commit is contained in:
@@ -4,9 +4,9 @@
|
||||
<p><strong>env命令</strong> 用于显示系统中已存在的环境变量,以及在定义的环境中执行指令。该命令只使用“-”作为参数选项时,隐藏了选项“-i”的功能。若没有设置任何选项和参数时,则直接显示当前的环境变量。</p>
|
||||
<p>如果使用env命令在新环境中执行指令时,会因为没有定义环境变量“PATH”而提示错误信息“such file or directory”。此时,用户可以重新定义一个新的“PATH”或者使用绝对路径。</p>
|
||||
<h3 id="语法">语法</h3>
|
||||
<pre><code>env(选项)(参数)</code></pre>
|
||||
<pre><code class="language-bash">env(选项)(参数)</code></pre>
|
||||
<h3 id="选项">选项</h3>
|
||||
<pre><code>-i:开始一个新的空的环境;
|
||||
<pre><code class="language-bash">-i:开始一个新的空的环境;
|
||||
-u<变量名>:从当前环境中删除指定的变量。</code></pre>
|
||||
<h3 id="参数">参数</h3>
|
||||
<ul>
|
||||
@@ -14,7 +14,7 @@
|
||||
<li>指定:指定要执行的指令和参数。</li>
|
||||
</ul>
|
||||
<h3 id="实例">实例</h3>
|
||||
<pre><code>[root@localhost ~]# env
|
||||
<pre><code class="language-bash">[root@localhost ~]# env
|
||||
hostname=LinServ-1
|
||||
TERM=linux
|
||||
SHELL=/bin/bash
|
||||
|
Reference in New Issue
Block a user