您可以通过运行了解登录用户
who
(样品输出:
server:~# who root pts/0 Nov 12 11:28 (192.168.0.202)
)
要么
w
这给出了更详细的输出:
server:~# w 11:29:49 up 2:19, 1 user, load average: 0.02, 0.01, 0.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/0 192.168.0.202 11:28 0.00s 0.08s 0.01s w