1.用last命令查看:
[root@centos1 conf]# last
root pts/1 172.16.4.53 Mon Nov 10 10:21 still logged in
root pts/0 172.16.4.53 Mon Nov 10 10:10 still logged in
root pts/0 172.16.4.53 Mon Nov 10 10:04 - 10:10 (00:05)
root pts/2 172.16.4.53 Mon Nov 10 09:44 - 10:04 (00:19)
root pts/1 172.16.4.53 Mon Nov 10 09:14 - 10:03 (00:48)
root pts/0 172.16.4.53 Mon Nov 10 08:00 - 09:53 (01:52)
root pts/0 172.16.4.53 Mon Nov 10 07:58 - 08:00 (00:01)
root tty1 Mon Nov 10 06:52 - 10:03 (03:10)
reboot system boot 2.6.32-431.el6.x Mon Nov 10 06:33 - 10:29 (03:56)
root tty1 Thu Oct 30 05:57 - crash (11+01:36)
reboot system boot 2.6.32-431.el6.x Thu Oct 30 05:56 - 10:29 (11+05:33)
2.用pkill -kill -t pts/1注销
转载于:https://blog.51cto.com/vqiao/1575027