Karp

linux下踢出已登录用户
查看 当前有哪些用户登录[root@dev bin]# w 23:27:21 up x days, x min,...
扫描右侧二维码阅读全文
06
2020/07

linux下踢出已登录用户

查看 当前有哪些用户登录

[root@dev bin]# w
 23:27:21 up x days, x min,  3 users,  load average: 0.35, 0.40, 0.37
USER     TTY      FROM             LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    1xx.x.x.x       23:27    8.00s  0.04s  0.03s top
root     pts/2    1xx.x.x.x       23:05    0.00s  0.68s  0.31s -bash
root     pts/3    1xx.x.x.x       23:06   21:13   0.01s  0.01s -bash

踢出用户

[root@dev bin]# pkill -kill -t pts/0
Last modification:July 6th, 2020 at 11:32 pm

Leave a Comment