In UNIX, what is the command to kill a process?
Answers were Sorted based on User's Feedback
Answer / dilipsimha
kill -9 <pid>
this is for force killing
kill <pid>
just try to kill
killall <pname>
this is to kill all instances of a process with name pname
killall -9 <pname>
| Is This Answer Correct ? | 17 Yes | 1 No |
Kill -9 <PID> or Kill -s Kill <PID>
To Kill a process forcibly or definitely kill.
Kill -15 <PID> or kill -s term <PID>
To terminate a Process.
Thanks,
jagadeeb@gmail.com
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / srinivas kalvacherla
How to terminate process by name in UNIX
kill -9 `ps -ef | grep process_name | grep -v grep |
awk '{print $2}'`
Note that the grep process_name should be the command that
you ran. Also note that the commands after 'kill -9' are
enclosed in backtiks.
| Is This Answer Correct ? | 7 Yes | 1 No |
Answer / vinod b
kill -9 uses SIGKILL signal which should not be used
because its forcible killing ,it cant be blocked or cached .
kill -15 PID will be suitable .else use killall pid as
explained in an earlier ans. kill -15 is a Termination
signal(SIGTERM)
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / bandi sreekanth
if u want kill process by command
use this
PKILL <COMMAND_NAME>
| Is This Answer Correct ? | 1 Yes | 0 No |
What is command statement?
what is the cmd to display the last exit status in UNIX?
how unix kernel distinguishes between a normal file and device file ?
7 Answers Google, IBM, McAfee, Vodafone,
Explain the read, write, and execute permissions on a UNIX directory.
Give a regular expression that finds two things, try to come up with regular expressions that find each individually using "egrep" command?
What Is the command to change a file's creation time. means one file is created at the time 15:19 then time should br changed to 14:14
How do you list the files in an UNIX directory while also showing hidden files?
Using unix command how to display no of records in oracle?
What do chmod, chown, chgrp commands do?
How to setup sudo, only can use for particular date & time only ( for solaris10 )
who to change the duplex setting of network interface in command line
How do I use nslookup?