In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "the use of finger commands in Linux". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn "the use of finger commands in Linux".
Linux allows multiple users to log in at the same time using different terminals. The Linux finger command provides system administrators with a way to know how many users are using the Linux host at a certain time. Let's introduce this simple command first and then give an example.
The function of the Linux finger command is to query the user's information, which usually displays the user name, home directory, stagnation time, login time, login shell and other information of a user in the system. If you want to query user information on a remote machine, you need to follow the user name with "@ hostname" in the format of [username @ hostname], but the network host you want to query needs to run the finger daemon.
The general format of the command is:
Finger [option] [user] [user @ host]
The options in the command have the following meanings:
-s displays the user's registration name, actual name, terminal name, write status, stagnation time, login time and other information.
In addition to the information displayed with the-s option, it also displays information such as the user's home directory, login shell, mail status, and the contents of .plan, .project, and .forward files under the user's home directory.
-p is the same as the-l option except that the .plan file and .project file are not displayed.
Use the finger command on the local machine.
$finger xxq
Login: xxq Name:
Directory: / home/xxq Shell: / bin/bash
Last login Thu Jan 1 21:43 (CST) on tty1
No mail.
No Plan.
$finger
Login Name Tty Idle Login Time Office Office Phone
Root root * 1 28 Nov 25 09:17
……
At this point, I believe you have a deeper understanding of "the use of finger commands in Linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.