Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to kill xkill? [closed]

I entered xkill command, then changed my mind and then pressed ctrl+z in linux terminal. How to stop xkill command now?

Do not read below. I dont understand what is wrong and why I need to write too much text. Without this paragraph stackoverflow deny this question.

like image 968
Игорь Avatar asked Oct 25 '25 12:10

Игорь


2 Answers

I would try: pkill -9 xkill . This will kill with sigkill any process which greps for xkill.

like image 181
bodangly Avatar answered Oct 28 '25 02:10

bodangly


You can always bring a Ctrl-Z'd (backgrounded) process back into foreground using the fg command (eventually with the respective job ID, if needed), then you can use Ctrl-C as if Ctrl-Z never happened:

laptop:/home/me> xkill
Select the window whose client you wish to kill with button 1....
^Z
[1]  + 22082 Suspended                     xkill
laptop:/home/me> fg
xkill
^C
laptop:/home/me> 

More details here.

like image 26
Dan Cornilescu Avatar answered Oct 28 '25 04:10

Dan Cornilescu