Detailed introduction to the use of Linux finger commands

Source: Internet
Author: User

Linux allows multiple users to log in at the same time using a different terminal, and theLinux Finger command provides the system administrator with a way to know how many users are using the Linux host at some point , and for this simple command, let's start by introducing an example.

The function of the Linux finger command is to query the user's information, which usually displays the user name, home directory, time of inactivity, logon time, login shell and other information of a user in the system. If you want to query the user information on the remote computer, you need to follow the user name "@ hostname", the [username @ hostname] format, but to query the network host needs to run the finger daemon.

The general format of the command is:

finger [options] [users] [user @ host]

The meanings of the options in the command are as follows:

-S displays information such as the user's registered name, actual name, terminal name, write status, stall time, logon time, and so on.

-L In addition to the information displayed with the-s option, it also displays information such as the user's home directory, login shell, message status, and the contents of the. Plan,. Project, and. Forward files in the user's home directory.

-P is the same as the-l option except that the. plan file and the. project file are not displayed.

[Example] use the finger command on the local machine.

    1. $ finger XXQ
    2. LOGIN:XXQ Name:
    3. Directory:/home/xxq Shell:/bin/bash
    4. Last login Thu Jan 1 21:43 (CST) on tty1
    5. No Mail.
    6. No Plan.
    7. $ finger
    8. Login Name Tty Idle Login Time Office Office Phone
    9. Root root * 25 09:17
    10. ......

The use of the Linux Finger command has been introduced, and hopefully it will help you manage your system.

Detailed introduction to the use of Linux finger commands

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.