Linux finger命令可以讓使用者查詢一些其他使用者的資料。會列出來的資料有:
其中 .plan、.project 和 .forward 就是使用者在他的 Home Directory 里的 .plan , .project 和 .forward 等檔案里的資料。如果沒有就沒有。finger 指令并不限定于在同一服務(wù)器上查詢,也可以尋找某一個遠端服務(wù)器上的使用者。只要給一個像是 E-mail address 一般的地址即可。
使用權(quán)限:所有使用者。
finger [options] user[@address]
參數(shù)說明:
列出當前登錄用戶的相關(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.