Wednesday, July 24, 2013

Stopping a running process in linux:--

            When you get stuck in any process which can't stop with 'force-quit', you can try stopping it from 'terminal' window. To stop a process or application from the 'terminal', you need to know the PID of the process so that you can that PID.
           Given below are the set of commands that will stop a running process.

   #ps -e

           This will give the details of all processes that are running. Now we need to get the process ID(PID) of the application that we need to syop. For example, assume you are running Firefox on the system.

   #ps -e | grep firefox

           The above command will give you the PID of Firefox(which is '9' in thisd case). Now, this PId can be used as below to stop firefox.

   kill -9 PID

refer to:: hackinsides.blogspot.com

No comments:

Post a Comment