List running apps by process name only in macOS

After years of searching, I finally just wrote my own expression to show all running processes with just the names that I can feed to killall say to exit.

The command:

ps axc | sed "s/.*:..... /\"/" | sed s/$/\"/

The output:

"launchd"
"syslogd"
"UserEventAgent"
"uninstalld"
"kextd"
"fseventsd"
"mediaremoted"
"appleeventsd"
"systemstats"
"configd"
"powerd"
"openvpn-service"
"TeamViewer_Service"
"logd"
"keybagd"
"warmd"
"mds"
"iconservicesd"
"iconservicesagent"
"diskarbitrationd"
"backupd-helper"


"coreduetd":

 

Posted by tomachi on February 18th, 2019 filed in Mac, Technology