Linux finger command details how to use Linux finger command

Source: Internet
Author: User

The following information is displayed:

  • Login Name
  • User Name
  • Home directory
  • Shell
  • Login status
  • Mail status
  • . Plan
  • . Project
  • . Forward

Among them,. plan,. project, and. forward are the materials in the user's Home Directory files, such as. plan,. project, and. forward. If not, no. The finger command is not limited to queries on the same server. You can also search for users on a remote server. You only need to give an address like an e-mail address.

Permission: all users.

Syntax

Finger [options] user [@ address]

Parameter description:

  • -L multi-line display.
  • -S single row display. This option only displays the logon name, real name, terminal name, idle time, logon time, office number, and phone number. If the query user is a user of the remote server, this option is invalid.

Instance

Lists information about the currently logged on user.

# Finger-l // Display user information

Login: root Name: root

Directory:/root Shell:/bin/bash

On since Fri Apr 9 20:17 (CST) on: 0 (messages off)

On since Fri Apr 9 20:17 (CST) on pts/1 32 days 22 hours idle

On since Fri Apr 9 20:17 (CST) on pts/3 4 hours 5 minutes idle (messages off)

On since Wed May 12 18:08 (CST) on pts/4 from 192.168.1.10

On since Wed May 12 18:35 (CST) on pts/5 from 192.168.1.10 7 minutes 54 seconds idle

On since Wed May 12 (CST) on pts/2 from 192.168.1.10 3 hours 14 minutes idle

On since Wed May 12 (CST) on pts/7 34 minutes 25 seconds idle (messages off)

On since Wed May 12 16: 53 (CST) on pts/8 from 192.168.1.10 30 minutes 18 seconds idle

Mail last read Mon Mar 31 2008 (CST)

No Plan.

Display specified user information

# Finger-m hnlinux

Display remote user information

# Finger-m root@192.168.1.13

You can run the following commands to query the information of the local administrator:

Finger root

The result is as follows:

Login: root Name: root

Directory:/root Shell:/bin/bash

Never logged in.

No mail.

No Plan.

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.