关闭linux终端进程
[root@linux-node1 ~]# w 22:16:45 up 24 days, 24 min, 2 users, load average: 0.28, 0.17, 0.15 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT root tty1 23Oct18 23days 0.03s 0.03s -bash root pts/0 192.168.31.220 20:01 5.00s 0.56s 0.51s -bash [root@linux-node1 ~]# w -s 22:17:23 up 24 days, 25 min, 2 users, load average: 0.15, 0.15, 0.14 USER TTY FROM IDLE WHAT root tty1 23days -bash root pts/0 192.168.31.220 3.00s -bash [root@linux-node1 ~]# ps -t PID TTY STAT TIME COMMAND 6391 pts/0 R+ 0:00 ps -t 7291 pts/0 Ss+ 0:00 /bin/bash 28477 pts/0 Ss 0:00 -bash [root@linux-node1 ~]# ps -t tty1 PID TTY TIME CMD 10536 tty1 00:00:00 bash [root@linux-node1 ~]# kill -9 10536 [root@linux-node1 ~]# w -s 22:18:47 up 24 days, 26 min, 1 user, load average: 0.45, 0.21, 0.16 USER TTY FROM IDLE WHAT root pts/0 192.168.31.220 7.00s -bash [root@linux-node1 ~]#