linux踢人

引用

linux120:/opt/oms/run/bin#who

rootpts/0Oct2410:20(10.166.46.135)

rootpts/2Oct2411:11(10.166.46.115)

rootpts/3Oct2417:05(10.166.46.147)

linux120:/opt/oms/run/bin#w

17:32:05up1day,8:14,5users,loadaverage:0.11,0.51,0.80

USERTTYLOGIN@IDLEJCPUPCPUWHAT

rootpts/010:203:090.10s0.10s-bash

rootpts/211:115:20m0.12s0.12s-bash

rootpts/317:050.00s0.06s0.00sw

解释:

pkill-kill-t 踢人命令

tty 所踢用户的TTY

如上踢出liu用户的命令为:pkill-kill-tpts/1

只有root用户才能踢人,如果同时有二个人用root用户登录,任何其中一个可以踢掉另一个。

任何用户都可以踢掉自己-_-.

相关推荐