Difference between revisions of "Kill"
Jump to navigation
Jump to search
(→Linux Examples: * <code>kill -9 `lsof -t -u USERNAME`</code>) |
|||
Line 16: | Line 16: | ||
* <code>[[killall]]</code>, <code>[[pkill]]</code>, <code>[[xkill]]</code> | * <code>[[killall]]</code>, <code>[[pkill]]</code>, <code>[[xkill]]</code> | ||
* kill in Windows is an alias for <code>[[Stop-Process]]</code> cmdlet | * kill in Windows is an alias for <code>[[Stop-Process]]</code> cmdlet | ||
+ | * {{ps}} | ||
[[Category:Linux]] | [[Category:Linux]] | ||
[[Category:Linux commands]] | [[Category:Linux commands]] |
Revision as of 14:38, 2 February 2020
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
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`
See also
killall
,pkill
,xkill
- kill in Windows is an alias for
Stop-Process
cmdlet - 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: