Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-07-2009, 04:32 AM   #1
Registered: Apr 2009
Location: Bengaluru, India
Distribution: RHEL 5.4, 6.0, Ubuntu 10.04
Posts: 707

Rep: Reputation: 55
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

kill PID
I know below commands work just fine
kill -15 PID  # is for gracefull kill
kill -9 PID # is for forcefull kill

Thanks in advance...
Old 12-07-2009, 04:37 AM   #2
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

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

Old 12-07-2009, 08:29 AM   #3
Registered: Sep 2009
Posts: 110

Rep: Reputation: 24
I usually only use the form
# kill <PID>
so it certainly works without any options.
Old 12-07-2009, 10:01 PM   #4
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 661

Rep: Reputation: 66
Remember that
'The default signal for kill is TERM'

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



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
kill command pulkitbajar Linux - Newbie 7 05-12-2009 07:19 PM
why we cannot kill process id 1 with command "kill -9 1" satyaredhat Linux - Newbie 7 03-11-2009 12:48 PM
Kill command could not kill Kanaflloric Linux - General 11 08-22-2005 07:18 AM
The kill command tearinox Linux - Newbie 2 08-15-2003 04:40 PM
kill command... Sonny Linux - Newbie 2 01-28-2002 03:08 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:16 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration