![]() |
… other than what its name implies.
Tip of the Trade: ‘kill’ doesn’t just kill processes dead, it also can send processes a variety of other signals.
kill is most often used without an argument or with -9,
to kill a process off. But it can also be used to send various other signals
to a process. Some are variations on process termination, but you can
also get information about or out of processes.
Here are some you may find useful:
Recent Tips » PuTTY and Xming » DBAN » UUID Read All Tips of the Trade |
kill -0 1685; echo $?
will output 0 if process 1685 exists, and 1 if it doesn’t. This can also
be useful in shell scripts if you have a process number recorded and wish
to check if it’s still running.
Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved
Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.