Friday, May 3, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 3357  / 1 Year ago, wed, november 30, 2022, 9:06:16

When I press Ctrl + Alt + F(1-6), I'm directed to virtual terminal. I've two user account except guest. When I try to login from one of those two users, my system gets hang. So, I was wondering how to restart that virtual console from another virtual console or how to kill all processes in one virtual console from another virtual console.


More From » virtual-console

 Answers
3

Run in terminal



ps -ft tty2 


Output will be look like:



UID        PID  PPID  C STIME TTY          TIME CMD
root 1024 1 0 06:52 tty2 00:00:00 /bin/login --
gulu 3532 1024 0 09:15 tty2 00:00:00 -bash


Here I am going to kill Virtual Console 2 (tty2). Just kill the pid of /bin/login -- with root privilege



kill -9 <pid>


here,



kill -9 1024

[#28269] Thursday, December 1, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ionash

Total Points: 214
Total Questions: 111
Total Answers: 116

Location: Sudan
Member since Thu, May 7, 2020
4 Years ago
;