Easy Tutorial
❮ Linux Vim Linux Comm Useradd ❯

Linux finger Command

Linux Command Manual

The Linux finger command allows users to query information about other users. The information listed includes:

The .plan, .project, and .forward files contain data from the user's Home Directory. If they do not exist, no data is displayed. The finger command is not limited to querying users on the same server; it can also find users on remote servers by providing an address similar to an E-mail address.

Permission: All users.

Syntax

finger [options] user[@address]

Parameter Description:

Examples

List information about currently logged-in users

# 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 14:37 (CST) on pts/2 from 192.168.1.10
3 hours 14 minutes idle
On since Wed May 12 14:53 (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 04:02 2008 (CST)
No Plan.

Display information about a specified user

# finger -m hnlinux

Display information about a remote user

# finger -m [email protected]

The following command can query the information of the local machine administrator:

finger root

The result is as follows:

Login: root Name: root
Directory: /root Shell: /bin/bash
Never logged in.
No mail.
No Plan.

Linux Command Manual

❮ Linux Vim Linux Comm Useradd ❯