Currently i am using the system monitor of gnome. It is like task manager, and has a function to end process, but sometimes this makes everything freeze and it locks up. Is there any way to fully end a process with command line faster?
|
feedback
|
|
Try xkill, there's applet you could put to your panel. You just click on it, then click on the window of application you'd like to kill and it's gone instantly. Very handy. | |||||||
feedback
|
|
You are looking for the kill command to end a process "fully" as you requested, you can use kill like so:
although this may have unwanted effects and can leave behind temporary files and such, you should try sending the terminate signal first:
where You could also use something like this to determine the PID:
the number on the far left should be the PID. | |||||||||||||||
feedback
|
|
You can use kill to send the desired signal to the process ID. You can find the process ID with pgrep, and send a signal to a named process with pkill. The pattern used to look for the process with pgrep and pkill is normally only matched against the process name. Specify -f to check the entire command line of the process. Start with a TERM signal (it's the default if no signal is specified) before using KILL ('9'), as outright killing a process may have undesirable side effects. For sake of example, I'll use the dhclient3 process on my system. Old way, ps | grep:
Kill the dhclient:
With pgrep/pkill:
With -f to specify a pattern anywhere in the commandline:
Kill the dhclient process with pkill (signal before -f pattern):
About signals (from the kill man page):
| |||||||
feedback
|
|
I usually do:
Which returns the PID of the task Then
| |||||
|
feedback
|
|
I like to use killall as it will allow you tab through the names of the running process and if your using zsh it will give you a nice list of running processes. Start with the first letter of the process you want to kill and hit Tab.
hitting tab there will show that I have 'firefox' available. repeat the command and if it says something about no process was killed then you accomplished your task. | |||
|
feedback
|
|
Note that if the hanged process is a window, you have a "button" to add in Gnome toolbar, to terminate a process (you click on it, then on the concerned window) edit : "Force Quit" is the name of it | ||||
|
feedback
|
|
You want psdoom. This is a first-person shooter game in which the monsters are associated with a pid. Killing a monster sends a SIGKILL to the associated process. It is perhaps not the most efficient way to kill a process, but it may be the most entertaining. | |||
|
feedback
|
|
I would also like to add xkill. When call this from a terminal ( or a run command prompt) your cursor will change into a skull or crossbones icon, or an "X" icon. And then the next time you click on a window (any window) that application will get killed. I found this command to be a little more intuitive and user friendly. | |||
|
feedback
|