uTools-Manuals/docs/linux/unalias.html
2019-04-21 11:50:48 +08:00

18 lines
1.3 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<h1 id="unalias">unalias</h1>
<p>删除由alias设置的别名</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>unalias命令</strong> 用来取消命令别名是为shell内建命令。如果需要取消任意一个命令别名则使用该命令别名作为指令的参数选项即可。如果使用<code>-a</code>选项,则表示取消所有已经存在的命令别名。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">unalias(选项)(参数)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-a取消所有命令别名。</code></pre>
<h3 id="参数">参数</h3>
<p>命令别名:指定要取消的命令别名。</p>
<h3 id="实例">实例</h3>
<p>使用unalias命令将已经设置的命令别名“cc”取消输入如下命令</p>
<pre><code class="language-bash">unalias cc #取消已经设置的命令别名</code></pre>
<p>上面的命令执行后,系统会将指定的命令别名取消掉。如果用户再使用该命令别名时,系统将提示如下信息:</p>
<pre><code class="language-bash">ccno input files</code></pre>
<p>因此,当使用该指令将命令别名取消后,将不能够再进行使用。否则,将出现错误提示。</p>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->