I ran a R console on our server, and the process took much longer time than I expected. Thus I was trying close it by ctrl+z, it didn't work. Finally I just closed the terminal. But the process is still there when I check with top commands. I used kill, but won't kill the process. The top command output:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
27448 zhenyang 20 0 20.133g 0.020t 3.840g R 100.0 21.3 72:00.06 R
I checked the website and someone says it might be ctrl+z put the process in background, but fg command won't work.
Anyone help?
kill 27448. To kill it with fire (i.e. this has unwanted side effects, so try it only if the first version doesn't work):kill -9 27448. – Satō Katsura Sep 05 '16 at 07:23kill -9 -1– J. Chomel Sep 05 '16 at 07:38-1is a very bad idea. If the system lets it pass, it will crash the machine, probably rebooting it. Your sysadmin may not be very happy since it won't do a clean shut down if it works. – Julie Pelletier Sep 05 '16 at 08:24kill -9 -1withrootuser? Yes of course, it kills every single process owned by the user... But sometimes it doesn't work... I'm not very accurate on the topic, so I avoided posting it as an answer. It seems to have work for the OP though. – J. Chomel Sep 06 '16 at 06:18