DEV Community

Cover image for πŸš€ Simplify Your Linux Process Killing with a Fuzzy Process Killer πŸš€
Chris Schindlbeck
Chris Schindlbeck

Posted on

πŸš€ Simplify Your Linux Process Killing with a Fuzzy Process Killer πŸš€

Are you tired of sifting through numerous processes to identify and terminate them by looking up their PIDs?

Use this lightweight script function that leverages the power of fzf (a command-line fuzzy finder) to streamline the process of identifying and killing processes. Quickly locate and kill processes without memorizing PIDs!

How does it work?

  • Process Listing: It lists all running processes with their PIDs and command names.
  • Fuzzy Search: You can then use fzf to quickly filter and find the process you're looking for.
  • Kill Command: Once selected, it safely terminates the process with kill -9.

Copy the code into your .bashrc/.zshrc from this github gist and give it a try (fzf must be installed of course)!

πŸ”— https://gist.github.com/cschindlbeck/db0ac894a46aac42861e96437d8ed763

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

πŸ‘‹ Kindness is contagious

Immerse yourself in a wealth of knowledge with this piece, supported by the inclusive DEV Communityβ€”every developer, no matter where they are in their journey, is invited to contribute to our collective wisdom.

A simple β€œthank you” goes a long wayβ€”express your gratitude below in the comments!

Gathering insights enriches our journey on DEV and fortifies our community ties. Did you find this article valuable? Taking a moment to thank the author can have a significant impact.

Okay