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/

Reply to this note

Please Login to reply.

Discussion

No replies yet.