In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces the relevant knowledge of "the usage of the Linux basic command chfn". Many people will encounter such a dilemma in the operation of actual cases, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Chfn
The chfn instruction can change the information seen through the finger instruction. This information is stored in the / etc/passwd file and displayed by the Finger program. The LinuxFinger command displays four pieces of information that can be changed by chfn: your real name, your workspace and phone, and your home phone. Any of these four messages can be specified on the command line. If no information is provided on the command line, chfn enters interactive mode. In interactive mode, chfn prompts for each field. At the prompt, you can enter new information or press back to leave the field unchanged. Enter the keyword "None" to make the field blank.
The scope of this command: RedHat, RHEL, Ubuntu, CentOS, SUSE, openSUSE, Fedora.
1. Grammar
Chfn [options] user
2. List of options
Option
Description
-u |-- help
Show help documentation
-v |-- version
Show command version
-f |-- full-name
Set real name
-o |-- office
Set office address
-h |-- home-phone
Set up your home phone
-p |-- office-phone
Set up an office phone
3. Examples
Modify the user's real name and home number
[root@localhost david] # chfn-f wejie-h 110 root / / modify information
Changing finger information for root.
Finger information changed.
[root@localhost david] # finger root / / View information. It has been modified successfully.
Login: root Name: wejie
Directory: / root Shell: / bin/bash
Office: 110
On since 7 September 7 21:02 (CST) on tty1 from: 0
14 days 21 hours idle
On since Saturday September 22 07:36 (CST) on pts/0 from: 0.0
9 hours 12 minutes idle
On since 13 September 13 08:55 (CST) on pts/1 from: 0.0
New mail received 22 September 22 18:05 2018 (CST)
Unread since 21 August 09:22 2018 (CST)
No Plan.
This is the end of the introduction to "the usage of the Linux basic command chfn". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.