Skip to content
Voina Blog (a tech warrior's blog)
code, tech recipes, mindfulness, books, reviews and more
Follow us on Twitter Follow us on Facebook Follow us on Instagram Follow us on LinkedIn Follow us on rss
  • Home
  • Professional interests and hobbies
  • George’s CV
  • Romana’s CV

Bash one-liner: kill all processes with the same name

By George Valentin Voina | February 11, 2021
0 Comment

A simple one liner to kill all the processes having the same name or token in the name (myprocess):


kill -9 $(ps aux | grep myprocess | awk ‘{print $2}’)

This is a very effective way of cleaning up stuck processes that were spawned by some gone wrong software.

Share this:

  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Email a link to a friend (Opens in new window) Email
  • Share on Telegram (Opens in new window) Telegram
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Print (Opens in new window) Print
  • Share on Pocket (Opens in new window) Pocket
  • Share on Nextdoor (Opens in new window) Nextdoor
  • More
  • Share on Threads (Opens in new window) Threads
  • Share on X (Opens in new window) X
  • Share on Bluesky (Opens in new window) Bluesky

Like this:

Like Loading...

Related

Category: Linux
Post navigation
← My #Trip to #Dodoma, the Capital City of Tanzania #WFH needs a team of consultants →

Leave a ReplyCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe to Blog via Email

Topics

  • A. I. (20)
  • Amazon Review (4)
  • Application Servers (32)
  • Audiophile (2)
  • Banking (48)
  • Blog Links (32)
  • Books (8)
  • Databases (56)
  • DataCenter (162)
    • Docker (27)
    • Hp Microserver Gen8 (13)
    • Linux (70)
    • Storage (26)
  • Fintech (48)
  • Health (4)
  • Human Mind (25)
  • IoT (8)
  • Networking (52)
    • EdgeRouter (16)
    • Security (24)
  • Payments (31)
  • Programming (36)
  • RaspberryPi (10)
  • Technology Fails (20)
  • Travel (16)
  • Uncategorized (5)
  • Vintage Tech (3)
  • Watches (1)

Authors

  • 1 Romana Salageanu
  • 1 George Valentin Voina
  • RSS - Posts

Mastodon

Mastodon
Copyright 2015-2021 Donate for the site maintenance
voina.org voina.in voina.uk voina.fr voina.it voina.be
Iconic One Theme | Powered by Wordpress
%d