#!/bin/bash # Find all processes matching 'socket_vmnet' and kill them ps auxwww | grep -i socket_vmnet | grep -v grep | awk '{print $2}' | xargs sudo kill