[student@h006 ~]$ who student :0 2018-07-22 09:30 (:0) student pts/0 2018-07-22 09:31 (192.168.10.39) student pts/1 2018-07-22 09:32 (:0)
[student@h006 ~]$ who am i student pts/0 2018-07-22 09:31 (192.168.10.39) [student@h006 ~]$ who are you student pts/0 2018-07-22 09:31 (192.168.10.39) # 余談ですが、引数が2つあれば何でも who am i 動作になります。
[student@h006 ~]$ who -Hu 名前 端末 時間 IDLE PID コメント student :0 2018-07-22 09:30 ? 1679 (:0) student pts/0 2018-07-22 09:31 昔 2818 (192.168.10.39) student pts/1 2018-07-22 09:32 昔 3093 (:0)
[student@h006 ~]$ w 11:02:40 up 1:33, 4 users, load average: 0.00, 0.03, 0.05 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT student :0 :0 09:30 ?xdm? 2:18 0.19s /usr/libexec/gn student pts/0 192.168.10.39 09:31 0.00s 0.49s 0.01s w student pts/1 :0 09:32 48.00s 0.05s 0.05s bash root tty2 11:02 8.00s 0.03s 0.03s -bash
[student@h006 ~]$ w -shf student :0 ?xdm? /usr/libexec/gnome-session-binary --session gnome-c student pts/0 4.00s w -shf student pts/1 52.00s bash root tty2 12.00s -bash
[student@h006 ~]$ w root 11:02:46 up 1:33, 4 users, load average: 0.00, 0.03, 0.05 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty2 11:02 14.00s 0.03s 0.03s -bash