The use of finger Command in Linux
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!