To make a long story short, I need a one line command that kills all processes that contains the word "dock".
(Background is that the Dock freezes for me when I disconnect my monitor (it started with beta testing Sonoma), and after spending conuntless hours and days of reinstalling everything from scratch, I can't get rid of this problem (it works as it should with a fresh user, but returns after a couple of days, and now I don't have more time to search for the reason of this behavior).)
So, instead of opening the activity monitor, search for "dock", and kill those processes, I want to make an sh command that just kills them. That way I can create a shortcut with Keyboard Maestro and save a lot of time!
However, I don't know the correct use of 'grep' in combination of 'kill'.
Anyone that can help me?
I have tried with killall Dock, and that works for the Dock, but as you can see on the screenshot I also need to kill Dock-tillbehör, and I got this message when I try to do that: "No matching processes belonging to you were found"
I guess this is because there is an "ö" in the process name.
It's these processes I want to kill:
(Background is that the Dock freezes for me when I disconnect my monitor (it started with beta testing Sonoma), and after spending conuntless hours and days of reinstalling everything from scratch, I can't get rid of this problem (it works as it should with a fresh user, but returns after a couple of days, and now I don't have more time to search for the reason of this behavior).)
So, instead of opening the activity monitor, search for "dock", and kill those processes, I want to make an sh command that just kills them. That way I can create a shortcut with Keyboard Maestro and save a lot of time!
However, I don't know the correct use of 'grep' in combination of 'kill'.
Anyone that can help me?
I have tried with killall Dock, and that works for the Dock, but as you can see on the screenshot I also need to kill Dock-tillbehör, and I got this message when I try to do that: "No matching processes belonging to you were found"
I guess this is because there is an "ö" in the process name.
It's these processes I want to kill: