Linux finger命令

Linux 命令大全

Linux finger命令可以讓使用者查詢一些其他使用者的資料。會列出來的資料有:

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

其中 .plan、.project 和 .forward 就是使用者在他的 Home Directory 里的 .plan , .project 和 .forward 等檔案里的資料。如果沒有就沒有。finger 指令并不限定于在同一服務(wù)器上查詢,也可以尋找某一個遠端服務(wù)器上的使用者。只要給一個像是 E-mail address 一般的地址即可。

使用權(quán)限:所有使用者。

語法

finger [options] user[@address]

參數(shù)說明

  • -l  多行顯示。
  • -s  單行顯示。這個選項只顯示登入名稱、真實姓名、終端機名稱、閑置時間、登入時間、辦公室號碼及電話號碼。如果所查詢的使用者是遠端服務(wù)器的使用者,這個選項無效。

在線示例

列出當前登錄用戶的相關(guān)信息

# 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.

顯示指定用戶信息

# finger -m hnlinux

顯示遠程用戶信息

# finger -m root@192.168.1.13

下列指令可以查詢本機管理員的資料:

finger root

其結(jié)果如下:

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

Linux 命令大全

丰满人妻一级特黄a大片,午夜无码免费福利一级,欧美亚洲精品在线,国产婷婷成人久久Av免费高清