kill

kill allows sending a signal to processes

Typical usage: process management, free up resources, troubleshooting

Introduction into kill

The kill command is used on Linux to send a process signals. This can be a numeric value or its defined name (e.g. SIGTERM).

Installation

When kill is not installed by default, it can be added to the system using the relevant software package.

Package information for kill

Operating systemPackage nameInstallation
AlmaLinuxprocps-ng
dnf install procps-ng
Arch Linuxprocps-ng
pacman -S procps-ng
Debianprocps
apt install procps
Fedoraprocps-ng
dnf install procps-ng
openSUSEprocps
zypper install procps
Red Hat Enterprise Linuxprocps-ng
dnf install procps-ng
Rocky Linuxprocps-ng
dnf install procps-ng
Ubuntuprocps
apt install procps

Your Linux distribution using a different package? Share your feedback.

Usage

Available options

Long optionShort optionDescription
--list [SIGNAL]-l [SIGNAL]Show signal names. Signal is optional, can be used to translate between name and number. Note: Long option might not work.
--table-LShow signal names in a table. Note: long option might not work
--signal SIGNAL-s SIGNALSpecify the signal to send. Not: long option might not work

Missing an option in this overview? Share your feedback.

Examples using kill

Convert signal number to a name

Translate signal 9 to a name

kill -l 9

Frequently Asked Questions

What is the kill command and its purpose?

The kill command can be used on Linux systems to send a defined signal to a process. Learn how to use it and what signals are available.

Which package provides the kill command?

The command kill is provided by the procps or procps-ng package.

Relevant articles using the kill command

The following articles include an example on how to use kill and might be worth further exploring.

Related and similar commands

Linux has a lot of tools and commands available and sometimes you just need that little other tool. Here is a list of commands that are similar or related to kill:

Related and similar commands to kill
CommandCategorySummary
basenamefilesStrips directory and file name suffix from a given path
chrtprocessesSets Linux scheduler policy and priority for a process or command
niceprocessesRuns commands with specified priority
numactlprocessesControls NUMA policy for processes and shared memory
peekfdprocessesTracks a process and show file descriptor activity
pidofprocessesReturns process IDs for a process name
pidstatmonitoringMonitoring CPU, memory, and disk activity
pidwaitprocessesWait for process to stop
pmapprocessesShows memory mapping of process
prtstatprocessesShows process details for selected process like state, CPU and memory usage
pscapcapabilitiesDisplay available capabilities for running processes
pslogloggingShows which log files a process has opened
pstreeprocessesShow active processes and children like a tree
pwdxprocessesShows current working directory of a process
reniceprocessesChanges the priority of running processes
slabtopmemoryShows slab usage of kernel
smemmemoryShow memory usage including swap
straceprocess inspectionInspects running process
unitsdata conversionConverts a unit into another one, like from Celcius to Fahrenheit
watchprocessesMonitors changes in output of specified command

Also 💙 the command-line or terminal? Here is a set of cheat sheets for Linux to get more done from within the shell: