Kickoff
Kick a User Off a Linux System
Check Logins
who -u
centos tty1 2021-05-07 02:15 00:03 1569
centos pts/0 2021-05-07 01:44 . 1460 (192.168.122.1)
w
02:19:46 up 1:22, 2 users, load average: 0.00, 0.00, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
centos tty1 - 02:15 4:02 0.00s 0.00s -bash
centos pts/0 192.168.122.1 01:44 0.00s 0.21s 0.01s w
ps t
PID TTY STAT TIME COMMAND
1466 pts/0 Ss 0:00 -bash
1651 pts/0 R+ 0:00 ps t
Kick the User
pkill -HUP -t pts/0
skill -HUP -u centos
kill -HUP 1460