LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   kill command (https://www.linuxquestions.org/questions/linux-newbie-8/kill-command-773932/)

vinaytp 12-07-2009 04:32 AM

kill command
 
Hi all...

Is it possible to kill any process in linux with just kill command without any options like -15 or -9...

I mean

Code:

kill PID
I know below commands work just fine
Code:

kill -15 PID  # is for gracefull kill
kill -9 PID # is for forcefull kill


Thanks in advance...

vishesh 12-07-2009 04:37 AM

Kill basically send signal to process, by specifying argument you specify type of signal you want to send to running process.

Thanks

AngTheo789 12-07-2009 08:29 AM

I usually only use the form
# kill <PID>
so it certainly works without any options.

vishesh 12-07-2009 10:01 PM

Remember that
'The default signal for kill is TERM'

So it request to terminate the process. For detail see man kill

thanks


All times are GMT -5. The time now is 11:40 AM.