Printable Version of Topic

Click here to view this topic in its original format

Linuxhelp _ General Discussion _ Need help

Posted by: linuxmaster69 Apr 6 2017, 04:40 AM

I am doing my GCSE coursework and I need to find out how a professional has used the top command along with the ps and kill commands to diagnose a misbehaving system.

Posted by: michaelk Apr 6 2017, 10:17 AM

Have you read the man pages for each command? The ps command provides a snapshot of active processes. kill sends a signal to a specific process. Since kill uses the PID of a process the way to find it is from ps.

Posted by: olistevenson Aug 7 2017, 08:12 AM

In general, the kill command is intended to send a signal to the process. By default, if we do not specify which signal to send, a signal SIGTERM (from the word termination) is sent. SIGTERM indicates to the process that it is necessary to terminate. https://stackoverflow.com/questions/37975647/using-the-top-command-with-ps-and-kill and in my blog https://assignment.essayshark.com/blog/c-programming-example-random-number-from-1-to-5/ you can read more about these commands.

Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)