Difference between revisions of "Kill"

From wikieduonline
Jump to navigation Jump to search
Line 14: Line 14:
 
* 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]]:
 +
* [[kill %1]]
  
 
== Related commands ==
 
== Related commands ==

Revision as of 08:57, 5 September 2021

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: