If you call the top command, you get all the running processes. But how can I limit the output only to a certain process name like \"java\"?
I\'ve
I solved my problem using:
top -n1 -b | grep "proccess name"
in this case: -n is used to set how many times top will what proccess and -b is used to show all pids
it's prevents errors like : top: pid limit (20) exceeded