2019-04-21 11:50:48 +08:00

39 lines
1.8 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="chfn">chfn</h1>
<p>用来改变finger命令显示的信息</p>
<h2 id="补充说明">补充说明</h2>
<p><strong>chfn命令</strong> 用来改变finger命令显示的信息。这些信息都存放在/etc目录里的passwd文件里。若不指定任何选项则chfn命令会进入问答式界面。</p>
<h3 id="语法">语法</h3>
<pre><code class="language-bash">chfn(选项)(参数)</code></pre>
<h3 id="选项">选项</h3>
<pre><code class="language-bash">-f&lt;真实姓名&gt;或--full-name&lt;真实姓名&gt;:设置真实姓名;
-h&lt;家中电话&gt;或--home-phone&lt;家中电话&gt;:设置家中的电话号码;
-o&lt;办公地址&gt;或--office&lt;办公地址&gt;:设置办公室的地址;
-p&lt;办公电话&gt;或--office-phone&lt;办公电话&gt;:设置办公室的电话号码;
-u或--help在线帮助
-v或-version显示版本信息。</code></pre>
<h3 id="参数">参数</h3>
<p>用户名指定要改变finger信息的用户名。</p>
<h3 id="实例">实例</h3>
<p>范例1改变finger信息</p>
<pre><code class="language-bash">[root@localhost Desktop]# chfn
Changing finger information for root.
Name [root]: jack
Office []: hn
Office Phone []: 888888
Home Phone []: 9999999
Finger information changed.</code></pre>
<p>范例2改变账号真实姓名</p>
<pre><code class="language-bash">[root@localhost Desktop]# chfn -f jack
Changing finger information for root.
Finger information changed.</code></pre>
<p>范例3</p>
<pre><code class="language-bash">shell&gt;&gt; chfn
Changing finger information for user
Password: [del]
Name[]:linuxde ### 提供 finger 时的资料
Office[]:NCCU
Office Phone[]: [del]
Home Phone[]: [del]</code></pre>
<!-- Linux命令行搜索引擎https://jaywcjlove.github.io/linux-command/ -->