SUSPENDING A PROCESS

How to suspend a process? We use the kill command in Linux. Lets just say that a process is taking up to many resources. Because of this, you may need to kill or suspend the process for a temporary amount of time

You can use the TOP command to view all the current processes in real time. PS can be useful in this situation, but it will only display information relating to that specific process. Assuming that the process’s ID is 100,  simply type # kill -stop 100  to stop the process.

Now, lets say that your system has finished doing whatever intensive task it was doing and you would like to start that same process again. Using the same process ID, type out # kill -cont 100.

The kill command is one of those commands that allows an admin flexibility over all running processes.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s