The Wayback Machine - https://web.archive.org/web/20230512155147/https://www.geeksforgeeks.org/chfn-command-in-linux-with-examples/
Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

chfn command in Linux with examples

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

chfn command in Linux allows you to change a user’s name and other details easily. chfn stands for Change finger. Basically, it is used to modify your finger information on Linux system. This information is generally stored in the file /etc/passwd that includes user’s original name, work phone number etc.

Syntax:

chfn [option] [login] 

Example: In this example we used default “chfn” command without any option. In this system asks from the user itself to change the values of some basic attributes.

Options:

  • -f full_name : Let you change the full name on the account.

  • -w work_ph : Let you change the work phone number on the account.

  • -r room_no : Let you change the room number on the account.

  • -h home_ph : Let you change the home phone number on the account.

  • -o other : Let you change any other detail on the account.
My Personal Notes arrow_drop_up
Last Updated : 15 May, 2019
Like Article
Save Article
Similar Reads
Related Tutorials