kill Linux Commands
What is Linux kill Command?
Explanation
kill COMMAND:kill command is used to kill the background process.
SYNTAX :
kill [-s] [-l] %pid
OPTIONS:
-s |
Specify the signal to send. The signal may be given as a signal name or number. |
-l |
Write all values of signal supported by the implementation, if no operand is given. |
-pid |
Process id or job id. |
-9 |
Force to kill a process. |
EXAMPLE:
Step by Step process:
- Open a process music player.
xmms
press ctrl+z to stop the process.
- To know group id or job id of the background task.
jobs -l
It will list the background jobs with its job id as,
xmms 3956
kmail 3467
- To kill a job or process.
kill 3956
kill command kills or terminates the background process xmms.