you are viewing a single comment's thread
view the rest of the comments
[–] 2 points 10 months ago (6 children)

I use awk instead of cut cause I can remember the syntax better.

ps aux | grep zoom | grep -v grep | awk '{print $2}' | xargs kill -9

  • source
  • parent
  • hideshow 6 child comments
  • [–] 2 points 10 months ago (2 children)

    You can get rid of those greps, btw:

    ps aux | awk '/zoom/ && $0 !~ /awk/ {print $2}'
    

    Or just use pgrep.

  • source
  • parent
  • hideshow 2 child comments
  • [–] 1 point 10 months ago (2 children)

    May I interest you in the command killall? 😁

  • source
  • parent
  • hideshow 2 child comments