4 ms·
> ps -ef | grep VBoxHeadless | awk '{print $2}' | xargs kill -9 There's pkill for that :) pkill -KILL VBoxHeadless (the above assumes that the binary is ca
by pizza234 5y ago
> ps -ef | grep VBoxHeadless | awk '{print $2}' | xargs kill -9
There's pkill for that :)
pkill -KILL VBoxHeadless
(the above assumes that the binary is called `VBoxHeadless`)
- cryptonector 5y agoGenerally you might want to use the `-x` argument to `pkill`.
- kragen 5y agoOr killall.
- deckard1 5y agolet me introduce you to TASK_COMM_LEN $ pgrep systemd-journald $ and: $ pgrep systemd-journal 431 $ Guess how long it took me to figure this out. This affects killall, pkill, and pgrep. You can use the "-f" flag with pkill/pgrep.
- inetknght 5y agokill -9 $(ps aux | grep .exe | sed -r 's/ +/ /g' | cut -d ' ' -f 2) I fucking hate wine. I wouldn't use it at all if it weren't for steam. And this is the only way to kill a wine process.
- johnny22 5y agoit's easier to use pkill -9 -f <pattern> usually. depending on the goal here.