Share your knowledge at the LQ Wiki.
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 01-27-2002, 11:57 PM   #1
Registered: Jan 2002
Location: Burnaby British Columbia
Distribution: Redhat 7.1
Posts: 25

Rep: Reputation: 15
kill command...

Hi Guys,

I'm having some trouble figure out what Linux is doing when I issue the kill command. When I type,

kill 'slave1'

I get the message- bash: kill: pico: no such pid

However, when I type,

/bin/kill 'slave1'

the process 'slave1' is in fact killed. Why is that? There is no alias for kill and the only kill program is /bin/kill.

Old 01-28-2002, 12:02 AM   #2
LQ Addict
Registered: Dec 2001
Location: Brooklyn, NY
Distribution: *NIX
Posts: 3,704

Rep: Reputation: 56
Yep, that's strange I just tried it out the same effect, but to be honest I've never used kill command in such form, I preffer
kill -9 PID
Old 01-28-2002, 03:08 AM   #3
Senior Member
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
The only thing I could find that would explain that is the following line in the kill manual pages:

"Most modern shells have a builtin kill function."

I guess the builtin functions don't support a process name then. Making an alias for the kill command will prevent it from using the builtin one.


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
Question about Kill command bjdea1 Linux - General 2 11-07-2005 10:28 AM
Kill command could not kill Kanaflloric Linux - General 11 08-22-2005 07:18 AM
kill command question chunlee Linux - Newbie 5 10-18-2004 12:45 PM
The kill command tearinox Linux - Newbie 2 08-15-2003 04:40 PM
Kill a process by command ITJedi Programming 3 03-07-2003 10:49 AM > Forums > Linux Forums > Linux - Newbie

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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration