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

17 lines
971 B
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="groups">groups</h1>
<p>用来打印指定用户所属的工作组</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>groups命令</strong> 在标准输入输出上输出指定用户所在组的组成员,每个用户属于<code>/etc/passwd</code>中指定的一个组和在<code>/etc/group</code>中指定的其他组。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">groups(选项)(参数)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-help显示命令的帮助信息
--version显示命令的版本信息。</code></pre>
<h3 id="参数">参数</h3>
<p>用户名:指定要打印所属工作组的用户名。</p>
<h3 id="实例">实例</h3>
<p>显示linux用户所属的组</p>
<pre><code class="language-bash">groups linux
linux : linux adm dialout cdrom plugdev lpadmin admin sambashare</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->