How To Kill Processes in Linux
2 min read

Kill processes

To kill a process or application in Linux is quite simple, you can do it based on ID or name.

Overview

To get an overview I often use the top command using Ubuntu.

top command

This is possible right out of the box, without installing any third-party software.

You can also use the ps -ef command to get something quite like it.

Kill by ID

kill by id

To kill by the specified ID, you simply use the kill command.

sudo kill <pid>

Kill by name

kill by name

To kill by name, you use the pkill command.

sudo pkill <name>