Difference between revisions of "Kill"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
|||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | {{lowercase}} | ||
<code>[[wikipedia:Kill_(command)|kill]]</code> is a [[command]] that is used in Linux and other [[operating systems]] to send [[signals]] to running processes. kill commands allows to send [[wikipedia:Signal_(IPC)#SIGKILL|SIGKILL]] (<code>kill -9 PID</code>) signal that cause the process to terminate immediately (kill). | <code>[[wikipedia:Kill_(command)|kill]]</code> is a [[command]] that is used in Linux and other [[operating systems]] to send [[signals]] to running processes. kill commands allows to send [[wikipedia:Signal_(IPC)#SIGKILL|SIGKILL]] (<code>kill -9 PID</code>) signal that cause the process to terminate immediately (kill). | ||
− | + | * https://man7.org/linux/man-pages/man1/kill.1.html | |
== Linux Examples == | == Linux Examples == | ||
"Kill" a process (send SIGKILL signal) | "Kill" a process (send SIGKILL signal) | ||
− | *<code>kill -9 56568</code> or <code>kill -KILL 56568</code> or <code>kill -s KILL 56568</code> | + | *<code>kill -9 56568</code> or <code>kill -KILL 56568</code> or <code>[[kill -s]] KILL 56568</code> |
− | Send SIGTERM signal | + | Send [[SIGTERM]] signal |
− | *<code>kill -15 56568</code> or <code>kill -TERM 56568</code> or <code>kill -s TERM 56568</code> | + | * <code>[[kill -15]] 56568</code> or <code>kill -TERM 56568</code> or <code>kill -s TERM 56568</code> |
Kill al process that belongs to a user: | Kill al process that belongs to a user: | ||
Line 14: | Line 15: | ||
* Suspend process: <code>kill -SIGSTOP PID</code> | * Suspend process: <code>kill -SIGSTOP PID</code> | ||
* Resume process: <code>kill -SIGCONT PID</code> | * Resume process: <code>kill -SIGCONT PID</code> | ||
+ | |||
+ | [[Jobs]]: | ||
+ | * <code>[[kill %1]]</code> | ||
== Related commands == | == Related commands == | ||
Line 22: | Line 26: | ||
* <code>[[esxcli]] vm process kill -w 692XX -t soft</code> | * <code>[[esxcli]] vm process kill -w 692XX -t soft</code> | ||
* [[Zombie process]] | * [[Zombie process]] | ||
+ | * <code>[[enable]]</code>: [[enable -n]] kill | ||
+ | * [[Builtin]]: [[Bash buildins]] | ||
+ | * [[wait]] | ||
+ | * [[kill -6]] | ||
== See also == | == See also == | ||
* {{kill}} | * {{kill}} | ||
− | * kill in Windows is an alias for <code>[[Stop-Process]]</code> cmdlet | + | * kill in Windows is an alias for <code>[[Stop-Process]]</code> [[cmdlet]] |
+ | * {{jobs (linux)}} | ||
* {{ps}} | * {{ps}} | ||
[[Category:Linux]] | [[Category:Linux]] | ||
[[Category:Linux commands]] | [[Category:Linux commands]] |
Latest revision as of 15:13, 25 October 2024
kill
is a command that is used in Linux and other operating systems to send signals to running processes. kill commands allows to send SIGKILL (kill -9 PID
) signal that cause the process to terminate immediately (kill).
Linux Examples[edit]
"Kill" a process (send SIGKILL signal)
kill -9 56568
orkill -KILL 56568
orkill -s KILL 56568
Send SIGTERM signal
kill -15 56568
orkill -TERM 56568
orkill -s TERM 56568
Kill al process that belongs to a user:
kill -9 `lsof -t -u USERNAME`
- Suspend process:
kill -SIGSTOP PID
- Resume process:
kill -SIGCONT PID
Jobs:
Related commands[edit]
disown
podman kill
pkill
docker kill
esxcli vm process kill -w 692XX -t soft
- Zombie process
enable
: enable -n kill- Builtin: Bash buildins
- wait
- kill -6
See also[edit]
kill
[-s
],killall
,pkill
,xkill
,podman kill
,docker kill
, SIGINT, SIGTERM, rfkill,killall5
,kill 1
,launchctl kill (macOS)
,kill -9, kill -15
, signal- kill in Windows is an alias for
Stop-Process
cmdlet jobs
,jobs -l, bg
,fg
,disown
,wait
,nohup, kill, trap
- Process, zombie process, fork, thread:
ps
,tree
,pstree
,ps axf
,proc
,pwdx
,which
,watch
,sar -q
,tload
,uptime
, Interrupts,pgrep
,tasklist
(Windows), Zombie process,pstack
,docker ps
,docker-compose ps
,jobs
,acct
,process mrelease
,pidstat
, IPC,pidof
Advertising: