Quickly Find and Terminate Process

TLDR install fzf and kill -9 **<TAB>

This is a quick one. I’ve been using fzf for over 6 years since I discovered the tool, but I’ve never known that it can help you find a process and kill it in just one command.

Here’s what I usually did when I need to kill a rogue process:

  1. ps aux | grep process_name: note down the process id
  2. kill -9 process_id

Now, with fzf installed, I can just do: kill -9 **, then press TAB. fzf will open a dropdown list and allows me to fuzzy search the process! 🤯