Get the App
SLTechnology News&Howtos  ›  Servers  › 

The usage of the Linux basic command finger

Shulou Source: shulou.com Published: 2022-06-01 12:43:14 10月01日 Update

This article introduces the relevant knowledge of "the usage of the Linux basic command finger". 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!

Finger

The finger instruction is used to find and display information about a specified user. To query remote host information, you can use user@localhost to specify a user.

The scope of this command: RedHat, RHEL, Ubuntu, CentOS, SUSE, openSUSE, Fedora.

1. Grammar

Finger [- lmsp] user

2. List of options

Option

Description

S

Displays the user's user name, real name, login terminal, idle time, login time, address, phone number

-l

Display the user's user name, real name, user's home directory, shell after login, login time, email, schedule file

-p

Same as-l, but does not display ".plan", ".project", ".pgpkey" files

-m

Do not find the user's real name

3. Examples

View user root information

[root@localhost david] # finger-l root

Login: root Name: root

Directory: / root Shell: / bin/bash

On since 7 September 7 21:02 (CST) on tty1 from: 0

14 days 20 hours idle

On since Saturday September 22 07:36 (CST) on pts/0 from: 0.0

9 hours 5 minutes idle

On since 13 September 13 08:55 (CST) on pts/1 from: 0.0

New mail received 22 September 22 18:00 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 finger". 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!

Tags: User login command information name time foundation content file more user name knowledge practical successful learning next host dilemma address instance actual Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info macOS MariaDB OPPO Reno NVidia