Question: Which Command Is Used to Terminate a Process in Unix?
Contents

In Unix and Unix-like operating systems, kill is a command used to send a signal to a process. By default, the message sent is the termination signal, which requests that the process exit.

Which command is used to terminate a process?

When no signal is included in the kill command-line syntax, the default signal that is used is –15 (SIGKILL). Using the –9 signal (SIGTERM) with the kill command ensures that the process terminates promptly.

How do I terminate a UNIX session?

This is done by issuing the “kill” command from a terminal session, which instructs the Unix system to terminate the process.

  1. Open a terminal session if you are in a Graphical User Interface, or GUI. …
  2. Type “ps – aux” at the terminal prompt.
James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest