Latest web development tutorials

Linux finger command

Linux command Daquan Linux command Daquan

Linux finger command allows users to query other users' data. The data will be listed are:

  • Login Name
  • User Name
  • Home directory
  • Shell
  • Login status
  • mail status
  • .plan
  • .project
  • .forward

Wherein .plan, .project, and .forward user is in his Home Directory where .plan, .project, and .forward archives and other information. If you do not do not. finger command is not limited to a query on the same server, you can also find a user on a remote server. Just give a like E-mail address general address.

Access: All users.

grammar

finger [options] user[@address]

Parameter Description:

  • -l multi-line display.
  • -s single-line display. This option only displays the login name, real name, terminal name, idle time, login time, office number and telephone number. If the user is a user query remote server, this option is invalid.

Examples

It lists the current logged-in user information

# finger -l //显示用户信息
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.

Displays the user information

# finger -m hnlinux

The Remote User Information

# finger -m [email protected]

The following command can query the local administrator's Information:

finger root

The results are as follows:

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

Linux command Daquan Linux command Daquan