chfn(changefingerinformation)
功能说明:改变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显示版本信息。
#p#
NAME
chfn - change your finger information
SYNOPSIS
chfn [ -f full-name ] [ -o office ] [ -p office-phone ] [ -h home-phone ] [ -u ] [ -v ] [ username ]
DESCRIPTION
chfn is used to change your finger information. This information is stored in the /etc/passwd file, and is displayed by the finger program. The Linux finger command will display four pieces of information that can be changed by chfn : your real name, your work room and phone, and your home phone.
COMMAND LINE
Any of the four pieces of information can be specified on the command line. If no information is given on the command line, chfn enters interactive mode.
INTERACTIVE MODE
In interactive mode, chfn will prompt for each field. At a prompt, you can enter the new information, or just press return to leave the field unchanged. Enter the keyword "none" to make the field blank.
OPTIONS
- -f, --full-name
- Specify your real name.
- -o, --office
- Specify your office room number.
- -p, --office-phone
- Specify your office phone number.
- -h, --home-phone
- Specify your home phone number.
- -u, --help
- Print a usage message and exit.
- -v, --version
- Print version information and exit.
SEE ALSO
finger(1), passwd(5)