f

Used to change the information displayed by the finger command

Supplementary instructions

chfn command is used to change the information displayed by the finger command. This information is stored in the passwd file in the /etc directory. If no options are specified, the chfn command will enter a question-and-answer interface.

grammar

chfn(options)(parameters)

Options

-f<real name> or --full-name<real name>: set the real name;
-h <home phone> or --home-phone <home phone>: Set the home phone number;
-o<office address> or --office<office address>: Set the address of the office;
-p<office phone> or --office-phone<office phone>: Set the office phone number;
-u or --help: online help;
-v or -version: Display version information.

Parameters

Username: Specify the username to change finger information.

Example

Example 1, change finger information:

[root@localhost Desktop]# chfn
Changing finger information for root.
Name [root]: jack
Office []: hn
Office Phone []: 888888
Home Phone []: 9999999

Finger information changed.

Example 2, change the real name of the account:

[root@localhost Desktop]# chfn -f jack
Changing finger information for root.
Finger information changed.

Example 3:

shell>> chfn
Changing finger information for user
Password: [del]
Name[]:linuxde ### Provide information when finger is used
Office[]:NCCU
Office Phone[]: [del]
Home Phone[]: [del]