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)