Friday, March 22, 2024

Killing one or more process trees in MacOs - htop

 I have been using colima to run x64_86 images on an M1 ARM mac.  Occassionally it just hangs and it needs to be killed.  The most efficient way I have found is to use htop brew install htop to find and kill the processes.  The procedure goes like this:

htop -t - start the process in tree mode

/ colima - find the first process 

c  - mark this process and all children

Use the NEXT in the bottom right to find each of the trees and mark them

ESC - exit search

k - kill all the marked processes

Be sure not to select anything you don't mean to kill or you might be restarting your box to recover.