| Linux CentOS 注销在线用户相关操作 |
在 windows 里可以通过任务管理器注销掉某个在线用户,操作非常简单,灵活. linux 里也有类似方法,即使用 pkill 命令,步骤如下: 1. 先用 w 命令查看当前登录系统的用户: 引用 [root@34514cn ~]# w 11:48:09 up 3:13, 2 users, load average: 0.00, 0.01, 0.00 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root pts/0 218.17.167.82 11:47 0.00s 0.03s 0.01s w root pts/1 218.17.167.82 11:43 2:34 0.03s 0.03s -bash 2. 使用 pkill 命令将从 pts/1 终端登录的用户注销: 引用 [root@centos ~]# pkill -kill -t pts/1 其中第 1 个参数 -kill 中的 kill 是 SIGKILL 信号的缩写.类似的,如果你要发送 SIGINT 信号,可以: 引用 [root@centos ~]# pkill -int -t pts/1 也许下面的会对您有所帮助: Linux CentOS 禁拼ping? http://www.34514.cn/style/info/shownews.asp?id=627 Linux wget使用方法命令详解? http://www.34514.cn/style/info/shownews.asp?id=604 Linux CentOS vmstat命令实战详解? http://www.34514.cn/style/info/shownews.asp?id=626 |