Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

kill?

Status
Not open for further replies.

BIS

Technical User
Jun 1, 2001
1,893
NL
Hallo again ...

with the 'top' command I can see a process that I didn't stop properly, just contrl-z.

How do I kill it? I tried the man kill page, but don't quite get it. Suppose the PID is 16448, the following doesn't do it:

kill 16448

Could someone enlighten this newbie... ?
 
make sure you are logged in as root. If it still doesn't die, just shutdown now -r to reboot the machine. John D. Saucier
jsauce@magicguild.com
Certified Technician
Network Administrator
 
When you don't specify a signal, kill may send the process a signal the process doesn't recognize.

If you're sure you want to completely shutdown the process, issue:

kill -9 <process id>


see 'man kill' for more information. Want the best answers? Ask the best questions: TANSTAAFL!
 
Please do not shutdown your machine.
You do not have to, this is not windows.

kill -l will give you a list of all the signames that you
can send to a process.
kill -signame pid number, will send this signal.
 
With CNTL-Z, the jobs are stopped so may not respond to a regular 'kill'.
Also, if you CNTL-Z stopped them, then you can list the stopped jobs with &quot;jobs&quot;.

These can then be started in the forground with &quot;fg <job no.>&quot; so you can kill it with CNTL-C - or you can run them in the background with &quot;bg <job no.> so you can forground them later.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top