linux 踢用户下线

 

复制代码
第一种
[root@localhost bin]# who
root     tty1         2022-12-15 21:24
root     pts/0        2022-12-15 15:04 (192.168.20.65)
[root@localhost bin]# pkill -kill -t  tty1

第二种
[root@localhost bin]# ps -aux | grep tty1 root 26045 0.0 0.0 115548 3260 tty1 Ss+ 21:24 0:00 -bash root 26084 0.0 0.0 112820 2304 pts/0 S+ 21:25 0:00 grep --color=auto tty1 [root@localhost bin]# kill -9 26045
复制代码

 

posted @   不会跳舞的胖子  阅读(145)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 使用C#创建一个MCP客户端
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· ollama系列1:轻松3步本地部署deepseek,普通电脑可用
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 按钮权限的设计及实现
点击右上角即可分享
微信分享提示