Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use the chfn command in Linux

Shulou Source: shulou.com Published: 2022-06-02 00:42:16 10月05日 Update

Editor to share with you how to use the chfn command in Linux, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

The Linux common command chfn 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 enters the question-and-answer interface

Chfn is used to change the information displayed by the finger command

Add that the 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 enters the question-and-answer interface.

Syntax chfn (option) (parameter) option-f or-- full-name: set the real name;-h or-- home-phone: set the home phone number;-o or-- office: set the office address;-p or-- office-phone: set the office phone number;-u or-- help: online help;-v or-version: display version information. Parameter user name: specify the user name to change the finger information.

Example 1, change the 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 on finger Office []: NCCU Office Phone []: [del] Home Phone []: [del] these are all the contents of this article entitled "how to use chfn commands in Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Commands information articles examples content offices parameters numbers names files users user names phone numbers interfaces directories offices help Q & A not really Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB NVidia vpn macOS Linux