Question
Explain how to kill a process?

Answers

1.Become a superuser or root user to terminate the process of the another user.
2.Obtain the PID of the process to be terminated.

Syntax:
$ps –fu

Example:
$ps –fu abc
abc 325 322 3 jan 12 ? 11:04 /usr/openwin/bin/sun

The process ID is displayed in the first column of the output.

Terminate the process using kill command.
$ kill pid
Default signal number is -15 {SIGKILL}
-9 {SIGTERM}

Verifying if the process is terminated or not.
$pgrep   Your Comment






Search
Can you Answer!!
  • Q Seaplane service has recently been started from Mumbai to which place ?
  • Q Before independence,Zaire was under the control of
  • Q Yukio Hatoyama was sworn in as the sixtieth prime minister of which country?
  • Q What is the < machinekey > element and what two ASP.NET technologies is it used for?
  • Q What class must an inner class extend: A. The top level class B. The Object class C. Any class or interface D. It must extend an interface Select the most appropriate answer.
  • Q In which state Vindhyachal Super Thermal power plant is located?
  • Q Which tennis winner also won a Winter Olympics silver medal
  • Q Iron rusts in the presence of -
  • Q In Madagascar its illegal for pregnant women to do what
  • Q Chairman of 10th Pay Commission, Kerala:
  • Q What is the purpose of sprintf() function