Latest web development tutorials

Linuxのフィンガーコマンド

LinuxのコマンドDaquanの LinuxのコマンドDaquanの

Linuxの指コマンドは、ユーザが他のユーザのデータを照会することができます。 データが表示されます、次のとおりです。

  • ログイン名
  • ユーザー名
  • ホームディレクトリ
  • シェル
  • ログイン状態
  • メールのステータス
  • .plan
  • .project
  • .forward

.plan、.project、との.forwardユーザーは自分のホームディレクトリにあることを特徴とどこ.plan、.project、および.forwardのアーカイブやその他の情報。 あなたがないようにしないと。 fingerコマンドは、同じサーバー上のクエリに限定されるものではなく、あなたは、リモートサーバー上のユーザーを見つけることができます。 ちょうどのようなE-mailアドレスの一般的なアドレスを与えます。

アクセス:すべてのユーザー。

文法

finger [options] user[@address]

パラメータ説明:

  • -l複数行表示。
  • シングルライン表示は-s。 このオプションは、ログイン名、本名、端末名、アイドル時間、ログイン時間、オフィス番号と電話番号が表示されます。 ユーザーがユーザークエリリモート・サーバである場合、このオプションは無効です。

これは、現在ログインしているユーザーの情報が表示されます

# 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 [email protected]

次のコマンドは、ローカル管理者の情報を照会することができます。

finger root

結果は以下の通りであります:

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

LinuxのコマンドDaquanの LinuxのコマンドDaquanの