How do you stop a running process?
Answers were Sorted based on User's Feedback
Answer / sridhar
kill -0(or 9) pid
ex:
kill -9 1234 ( get this pid using ps -ef | grep
processname ")
Is This Answer Correct ? | 10 Yes | 2 No |
Answer / ravikumar reddy .dubba
all the above Ans for Killing the process ,Not for stoping
process.
This is correct ans for stoping process
while processing is running type ctrl+z
it will stop the process and it will give stopped process
Id.
dubba.ravikumarreddy@gmail.com
Is This Answer Correct ? | 8 Yes | 2 No |
Answer / pradi
We can stop the running processes in unix using
1) Kill command
2) Udw command
Usage:
1)bash# Kill process_id
will stop the process and immedaitely it will restarts on
its own with a new pid.
2)bash# udw process: process_name
will stops the running process. And again we want to
restart it then issue the command
bash# udw process: process_name t
will restarts the process.
Is This Answer Correct ? | 4 Yes | 4 No |
Answer / subbareddy kake
kill -9 <PID>
PID means process id.we can process id by using ls -lrt
command.
Is This Answer Correct ? | 4 Yes | 4 No |
Answer / c sivakumar
If we want to kill a process first we have to know the
process id. We cam come to know ps or top command.
Then we have to identify the respective proce's child
process with the help of ptree command. Then we can give
kill id-1 id-2
example:- Take an example while using ps command
# ps
PID TT S TIME COMMAND
2243 pts/16 S 0:00 -csh
now we identified the PID no (2243) with the help of above
said ps command.
Then we have to give following command to know child
process_-
ptree 2243
1498 /usr/local/sbin/sshd
2062 /usr/local/sbin/sshd
2199 /usr/local/sbin/sshd
2205 -csh
2243 -csh
11535 ptree 2243
Now we can kill above said all ids.
kill 1498 2062 2199 2205 2243 11535
Is This Answer Correct ? | 1 Yes | 4 No |
Differentiate cmp command from diff command.
What do chown command do?
What is the use of the command 'ls -x chapter[1-5]' ?
1-how will you display a file whose name is starting with '- '? 2-how will you add a patten at end of every line in vi editor?
how will u execute a file in unix
What is used to type command?
How to add content of one file into another file at the beginning
How we will execute previous command in vi editor?
How does the system know where one command ends and another begins?
Why we are using UNIX OS when we are doing the testing in our application?
How do you find which version and name of unix you are using at the command prompt?
what are the uses of filters?