1、查看系统在线用户 

[root@testdb ~]#w

2.查看哪个属于此时自己的终端(我开了两个连接)

[root@testdb ~]# who am i

3.pkill掉自己不适用的终端

[root@testdb ~]# pkill -kill -t pts/1

pts/1是其他用户名

pkill -9 -t pts/1

posted on 2016-08-11 16:35  阚壠  阅读(334)  评论(0编辑  收藏  举报