rod mclaughlin


How to kill Atom on a Mac (27 dec 20)

I found the editor Atom wouldn't exit when I clicked on Atom-Quit. Even 'Force Quit' wouldn't kill the blighter.

So I wrote a little script which does the job.

Just be careful not to run any other programs with "atom" in their name.

#/bin/sh
list=`ps auxw | grep -i atom | grep -v grep | sed s/^[a-zA-Z0-9_]*// | sed 's/^[ ^t]*//' | sed 's/ .*$//'`
for id in $list ; do
  kill -9 $id
done



Back
Portland London