Wednesday, June 25, 2008

Linux gems: pkill

I have been playing this game, tumiki fighter, and gunroar. Which is really an interesting game, but that's another story. What really sucks is sometime it is hard to close the program.

Previously I do this way.
In terminal I type:

ps -A

Then
kill -9 proc_id.

On the other hand, there is pkill.
Which is useful, because instead of process id. We can kill process via program name.
And it is like kill too.

So to pkill a process. In terminal, it would be
pkill -9 program-name

or you can
pkill -9 partofname

No comments:

Post a Comment