第一种
[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
标签:bin,下线,21,0.0,用户,tty1,linux,root,localhost From: https://www.cnblogs.com/rtnb/p/16986057.html