Difference between revisions of "Kill"

From wikieduonline
Jump to navigation Jump to search
(→‎Linux Examples: * <code>kill -9 `lsof -t -u USERNAME`</code>)
Line 9: Line 9:
 
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:
 +
* <code>kill -9 `[[lsof]] -t -u USERNAME`</code>
  
 
== See also ==
 
== See also ==

Revision as of 05:38, 9 December 2019

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`

See also

Advertising: