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.