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.

Posted by: Alfred Aug 14 2017, 06:20 PM


Top will enable you to find all processes running. This will help you know the system load an able carry out statistics. There is also the improved version for top called htop which is more quite user-friendly. Kill is a signal that instructs a program to end. Pkill will kill a process by name while killall will send signal to every instance. For more of this contact us through https://theessaypro.com/contact-us/ and we will give you more tutorials and past solved tasks on this.

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