chfn(change finger information)
chfn(change finger information)功能说明:改变finger指令显示的信息。
语 法:chfn [-f <真实姓名>][-h <家中电话>][-o <办公地址>][-p <办公电话>][-uv][帐号名称]
补充说明:chfn指令可用来更改执行finger指令时所显示的信息,这些信息都存放在/etc目录里的asswd文件里。若不指定任何参数,则chfn指令会进入问答式界面。
参 数:
-f<真实姓名>或--full-name<真实姓名> 设置真实姓名。
-h<家中电话>或--home-phone<家中电话> 设置家中的电话号码。
-o<办公地址>或--office<办公地址> 设置办公室的地址。
-p<办公电话>或--office-phone<办公电话> 设置办公室的电话号码。
-u或--help 在线帮助。
-v或-version 显示版本信息。
chfn
chfn [options] [username]
Change the information that is stored in /etc/passwd and displayed to the finger query. Without options, chfn enters interactive mode and prompts for changes. To make a field blank, enter the keyword none. Only a privileged user can change information for another user. For regular users, chfn prompts for the user's password before making the change.
Options
Specify new full name.
Specify new home phone number.
Specify new office number.
Specify new office phone number.
Print help message and then exit.
Print version information and then exit.
Example
chfn -f "Ellen Siever" ellen