[root@localhost pts]# who
root pts/0 2013-06-06 13:57 (192.168.1.2)
root pts/1 2013-06-06 13:57 (192.168.1.2)
root pts/2 2013-06-06 13:51 (192.168.1.2)
[root@localhost pts]# pkill -kill -t pts/0
[root@localhost pts]# who
root pts/1 2013-06-06 13:57 (192.168.1.2)
root pts/0 2013-06-06 13:57 (192.168.1.2)
root pts/1 2013-06-06 13:57 (192.168.1.2)
root pts/2 2013-06-06 13:51 (192.168.1.2)
[root@localhost pts]# pkill -kill -t pts/0
[root@localhost pts]# who
root pts/1 2013-06-06 13:57 (192.168.1.2)
root pts/2 2013-06-06 13:51 (192.168.1.2)
本文转自 freeterman 51CTO博客,原文链接:http://blog.51cto.com/myunix/1217193,如需转载请自行联系原作者