Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I see in:

ps aux 

that exists process like:

cp  file.txt /home/file.txt

This file is very big.

I try to kill like:

kill -9 12345

12345 is pid. But without success. What else I can do? What the reason?

P.S. 12345 0.0 0.0 7890 704 ? D 14:42 0:05 cp

share|improve this question
1  
Please give the full line of the process in ps aux. –  Patrick B. Nov 17 '11 at 12:45
    
kill should work.. do you copy from/to a special drive which can block/jam like CD or some network drive? –  yi_H Nov 17 '11 at 12:47
    
You can stop the process using CTRL+C. This will send a signal to cp stop. –  Diogo Nov 17 '11 at 12:51
add comment

migrated from stackoverflow.com Nov 17 '11 at 12:46

This question came from our site for professional and enthusiast programmers.

2 Answers

You can't kill process if it waits for some kernel syscall. For example if drive is busy or filesystem is otherwise locked up then you can't kill this process. How does your process look like if you do "ps -l". WCHAN and STAT are attributes you need to look at.

share|improve this answer
add comment

Just try CTRL+C in the terminal which cp works in. (I've assumed that you didn't send cp to background, which I don't do often.)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.