Here is how to kill a process or user by tty/pts name in #Linux. First, list the tty:
```
w
tty
who
```
Then kill by its number and SIGKILL (non-graceful) or SIGTERM (graceful) as the root:
```
pkill -KILL -t tty1
pkill -TERM -t pts0
```
For more info see https://www.cyberciti.biz/faq/kill-process-user-by-tty-name-in-linux/

@nixCraft If logind is in use (this is the case on systemd systems and all non-systemd distros that have a working modern desktop environment) you can use loginctl instead:

```
loginctl list-sessions
loginctl kill-session # ID
```

Of course, it provides much more functionality, this is systemd after all. https://www.man7.org/linux/man-pages/man1/loginctl.1.html

loginctl(1) - Linux manual page

@Alonely0 I will add that info too 😀
@nixCraft Is there a difference between SIGTERM and ending the sessions from loginctl? We wouldn’t want to be naughty and go around daddy systemd if not necessary.