「誰」は重複したユーザー名を印刷します。

「誰」は重複したユーザー名を印刷します。

結果は次のとおりですwho -uH

NAME     LINE         TIME             IDLE          PID COMMENT
me    :0           2013-08-29 01:29   ?          1686 (:0)
me    pts/0        2013-08-29 01:42  old         2905 (:0)
me    pts/1        2013-08-29 01:45  old         2905 (:0)
me    pts/2        2013-08-29 01:52  old         2905 (:0)
me    pts/3        2013-08-29 02:26  old         2905 (:0)
me    pts/4        2013-08-30 18:37 00:07        2905 (:0)
me    pts/5        2013-08-29 10:34  old         2905 (:0)
me    pts/6        2013-08-29 11:05  old         2905 (:0)
me    pts/7        2013-08-29 13:34  old         2905 (:0)
me    pts/8        2013-08-30 15:56 02:45        2905 (:0)
me    pts/9        2013-08-30 18:27 00:17        2905 (:0)
me    pts/10       2013-08-30 17:34   .          2905 (:0)
me    pts/11       2013-08-30 17:37 00:13        2905 (:0)
me    pts/12       2013-08-30 18:28 00:17        2905 (:0)
me    pts/13       2013-08-30 18:38 00:07        2905 (:0)

15行目に私のユーザー名がリストされているのはなぜですか?誰かが私のシステムにリモートで接続されているかどうかはどうすればわかりますか?

ベストアンサー1

端末の詳細

ユーザーが所有するすべての物理端末と仮想端末が一覧表示されます。

  • 別名仮想。擬似端末( pts#)
  • 物理的、(:0および/またはtty#

メモ:上には、#1、2、3などの実際の数字があります。

タブを開くたびにgnome-terminal仮想端末と見なされます。 tty 端末を使用してシステムにログインします。Control+ Alt+キーの組み合わせを使用してアクセスできますFn#

はい

$ w
 10:37:37 up 8 days, 21:05, 11 users,  load average: 2.24, 2.08, 2.13
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
saml     tty2     -                10:33    3:47   0.12s  0.12s -bash
saml     tty1     :0               21Aug13  9days 16:07m  0.02s pam: gdm-password
saml     pts/0    :0.0             21Aug13  9:57m  0.37s  0.37s bash
saml     pts/1    :0.0             21Aug13  8days  0.28s  0.28s bash
saml     pts/6    :0.0             21Aug13 36:23m  3.16s  3.16s bash
saml     pts/9    :0.0             22Aug13 33:52m  5.92s  5.92s bash
saml     pts/13   :0.0             Tue12   39:53m  2:37   2:37  irb                                                
saml     pts/27   :0.0             03:15    7:12m  0.21s  0.21s bash
saml     pts/28   :0.0             08:42    0.00s  0.18s  0.00s w
saml     pts/29   :0.0             10:36    8.00s  0.18s  0.01s ssh catbus
saml     pts/30   192.168.1.200    10:37    3.00s  0.14s  0.14s -bash

ノート

  1. 私のXサーバーが稼働しており、tty1端末:0に接続する場所を示しています。デフォルトのXサーバーを:0表します。:0.0

  2. 上記は、2つのtty端末が開いており、7つの仮想端末があることを示しています。

  3. 最後の行は、sshユーザーがシステムにリモートアクセスを使用したときに表示される内容を示しています。送信元IPアドレスを表示できます。

完全性のために、私の結果は次のとおりですwho -uH

$ who -uH
NAME     LINE         TIME             IDLE          PID COMMENT
saml     tty2         2013-08-30 10:33 00:18        1735
saml     tty1         2013-08-21 13:33  old         2008 (:0)
saml     pts/0        2013-08-21 13:35 10:12        3240 (:0.0)
saml     pts/1        2013-08-21 13:47  old         3240 (:0.0)
saml     pts/6        2013-08-21 15:21  old         3240 (:0.0)
saml     pts/9        2013-08-22 09:37  old         3240 (:0.0)
saml     pts/13       2013-08-27 12:14  old         3240 (:0.0)
saml     pts/27       2013-08-30 03:15 07:27        3240 (:0.0)
saml     pts/28       2013-08-30 08:42   .          3240 (:0.0)
saml     pts/29       2013-08-30 10:36 00:15        3240 (:0.0)
saml     pts/30       2013-08-30 10:37 00:15       14092 (192.168.1.200)

おすすめ記事