Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Kill (command)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
====Examples==== A process can be sent a [[SIGTERM]] signal in four ways (the process ID is '1234' in this case): <syntaxhighlight lang="bash"> kill 1234 kill -s TERM 1234 kill -TERM 1234 kill -15 1234 </syntaxhighlight> The process can be sent a [[SIGKILL]] signal in three ways: <syntaxhighlight lang="bash"> kill -s KILL 1234 kill -KILL 1234 kill -9 1234 </syntaxhighlight> Other useful signals include HUP, TRAP, INT, [[SIGSEGV|SEGV]] and ALRM. HUP sends the [[SIGHUP]] signal. Some daemons, including [[Apache HTTP Server|Apache]] and [[Sendmail]], re-read [[configuration file]]s upon receiving SIGHUP, so the kill command may be used for this too. A [[SIGINT (POSIX)|SIGINT]] signal can be generated very simply by pressing [[Control-C|{{keypress|CTRL|C}}]] in most [[Unix shell]]s. It is also common for [[Control-Z|{{keypress|CTRL|Z}}]] to be mapped to [[SIGTSTP]] ("terminal stop"), and for [[Control-\|{{keypress|CTRL|\}}]] (backslash) to be mapped to [[SIGQUIT]], which can force a program to do a [[core dump]].
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)