Difference between revisions of "Kill"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
 
<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/man2/kill.2.html
+
* https://man7.org/linux/man-pages/man1/kill.1.html
  
 
== Linux Examples ==
 
== Linux Examples ==

Revision as of 20:24, 28 March 2022

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

"Kill" a process (send SIGKILL signal)

  • kill -9 56568 or kill -KILL 56568 or kill -s KILL 56568

Send SIGTERM signal

  • kill -15 56568 or kill -TERM 56568 or kill -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

See also

Advertising: