Monday, October 17, 2011

How to search for process's with top & grep

Lets say we run a java program. And you couldn't find it by running the command 'top'...
run:
top | grep processnamehere


and then

pkill processnamehere


or

kill processpid


Or you could use a task-manager. :)
But if you are using ssh this is really useful.
Enjoy!
Manual Pages:

GREP
TOP

1 comment: