I have a process with the name
bla, and I want to kill it by its name.
When I run
ps aux | grep "bla", I get 2 entries:
How do I filter it out?
migrated from stackoverflow.com Jun 29 '10 at 9:58
This question came from our site for professional and enthusiast programmers.
While the killing question has been well answered, you asked how can you avoid getting the process "blabla" when you wanted "bla". What you want to do is add -w:
You can use the PID of the process to kill it.
Check out man pages for command kill.
The exact option would be