Как убить второго гедита?

708
hassan panahi

Я выполнил эту команду:

for run in  do gedit & done 

Как я могу убить второго Gedit? Потому что результат этой команды:
ps -eo cmd,pid | grep gedit

является:

gedit 5831 

Так kill <pid>выполни это: тогда все гедиты будут закрыты !!!

0

1 ответ на вопрос

2
L. Levrel

gedit is probably smart enough to run all its windows in a single process. So when you type gedit again, it "connects" to the running process, which then opens a new window.

If you want to close some windows, try wmctrl.

wmctrl -l lists windows. wmctrl -c <win_id> allows you to close a window (as if you clicked the close button).

Похожие вопросы