chfn (修改用户的“手指”信息)

秃噜豆儿 发表于 2020-07-12 06:02
浏览次数:
在手机上阅读

在Linux等Unix-like操作系统上,chfn修改用户的“手指”信息。这些信息存储在/etc/passwd文件中,包括用户的真实姓名、工作室、工作电话号码和家庭电话号码。

查看英文版

目录

1 chfn 运行系统环境

2 chfn 语法

3 chfn 示例

chfn 运行系统环境

Unix&Linux

chfn 语法

chfn [-f full_name] [-r room_no] [-w work_ph] [-h home_ph] [-o other] [user]

-f full_name

允许某人更改其帐户上的全名。

-r room_no

允许某人更改其帐户上的房间号。

-w work_ph

允许某人更改其帐户上的工作电话号码。

-h home_ph

允许某人更改其帐户上的家庭电话号码。

-o other

允许某人更改其帐户上的其他任何注释。

user

更改用户的名称。

chfn [-f full_name] [-r room_no] [-w work_ph] [-h home_ph] [-o other] [user]

-f full_name

Allows someone to change their full name on their account.

-r room_no

Allows someone to change their room number on their account.

-w work_ph

Allows someone to change their work phone number on their account.

-h home_ph

Allows someone to change their home phone number on their account.

-o other

Allows someone to change any other notes on their account.

user

The name of the user who is being changed.

查看英文版

查看中文版

chfn 示例

chfn

运行不带任何选项的命令将允许用户更改所有用户信息。

chfn

Running the command without any options will enable the user to change all the user information.

如果您试图更改实际用户名而不仅仅是用户的描述,那么您可能需要直接编辑密码文件;有关更多信息,请参阅vipw命令。

If you're attempting to change the actual username and not just the description of the user, you may want to edit the password file directly; see the vipw command for more information.

查看英文版

查看中文版

其他命令行

cut | cu | csplit | crontab | cpio | continue | compress | col | cmp | cksum | chsh | chroot | chkey | cd | chmod | cp | comm | chown | cal | calendar | clear | cancel | cat | cc | cfdisk | checkeq | checknr | chgrp |

如此好文,分享给朋友
发表评论
验证码:
评论列表
共0条