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

17 lines
692 B
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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="whoami">whoami</h1>
<p>打印当前有效的用户名称</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>whoami命令</strong> 用于打印当前有效的用户名称,相当于执行<code>id -un</code>命令。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">whoami(选项)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">--help在线帮助
--version显示版本信息。</code></pre>
<h3 id="实例">实例</h3>
<pre><code class="language-bash">[root@localhost ~]# whoami
root
[root@localhost ~]# id -un
root</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->