this post was submitted on 16 Dec 2025
35 points (92.7% liked)

Linux

10629 readers
728 users here now

A community for everything relating to the GNU/Linux operating system (except the memes!)

Also, check out:

Original icon base courtesy of lewing@isc.tamu.edu and The GIMP

founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[โ€“] TrumpetX@programming.dev 1 points 7 hours ago (2 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

[โ€“] victorz@lemmy.world 1 points 2 hours ago

May I interest you in the command killall? ๐Ÿ˜

[โ€“] stewie410@programming.dev 1 points 2 hours ago (1 children)

You can get rid of those greps, btw:

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

Or just use pgrep.

[โ€“] victorz@lemmy.world 1 points 2 hours ago* (last edited 2 hours ago)

The greps were much more legible that this concoction ๐Ÿ˜…

But I second the use of pgrep. ๐Ÿ‘Œ

Better yet, just killall zoom.