Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

When I shutdown my minecraft it never closes all the way, I have looked for a solution but found none. After awhile I gave up and decided that I would manually kill it when I wanted to close it.

If I use pgrep then kill in the terminal it seems to have no affect, but when I open the system monitor and right click and kill it, it shuts down nicely.

What are the differences between the System Monitor way and the Terminal way? Does the System Monitor do something else in the background that the kill command does not?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

There is no difference between the kill command and the System Monitor's 'kill'. The System Monitor just gives some arguments to kill that I assume you don't know.

When you kill <process-number>, it's actually sending a signal to that process to cleanly exit. This is called a SIGTERM. In order to kill a process unconditionally, potentially causing data loss, you need to send a different signal:

kill -9 <process-number>

This sends a SIGKILL to the process, which immediately ends its execution. System Monitor uses kill -9 when you ask to 'kill' a process rather than simply 'close' it.

This answer on the SuperUser Stack Exchange should be of help.

share|improve this answer
Thanks for the fast reply, that list on the superuser post was interesting. –  giodamelio Oct 27 '11 at 21:54

WHen killing an application using the terminal, I guess you ran:

kill 1234

On the System Monitor, you selected the process and chose for sending KILL to the process.

By default, the signal that's sent to the process when using plain kill $pid is TERM. This allows applications to terminate gracefully. However, when sending KILL, the program is immediately gone without a chance to shut down cleanly (i.e. saving data). To send a KILL signal from the command line, use:

kill -KILL 1234

(the alternate way to run this command is kill -9 1234, this is just a matter of preference)

share|improve this answer

Your Answer


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.