The Linux Newbie Guide  ⇒    Fundamentals     Advanced     Supplement   Command Index   ENG⇒中
All rights reserved, please indicate the source when citing
  

chfn : Modifying Finger Information



The chfn (change finger information) command is used to modify the information displayed by the finger command. Common options include "-f" to change the full name, "-o" to change the company name, "-p" to change the company phone number, and "-h" to change the home phone number. Generally, only the superuser (root) can execute this command.

The basic syntax of the chfn command is: chfn [options] [username]

Example (executed as root):
# chfn -f "john smith" -h "1234" John ← Change the full name to "john smith" and the phone number to "1234" for the account "John"

If you execute the chfn command without any options, it will interactively prompt you to enter new user information.
For a more detailed explanation of how this command works and additional examples, please refer to the provided link.