How to Kill a Process in Linux

When a program crashes or hangs, you can forcefully terminate it using its Process ID (PID).

Killing a Process

  1. Find the PID by running top or ps aux | grep processname.
  2. Type kill -9 [PID] (e.g., kill -9 1234) and press Enter.
  3. The process will immediately terminate.

Leave a Reply

Your email address will not be published. Required fields are marked *

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.

Receive our best articles and tips delivered straight to your inbox.