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
Use the watch command
watch -d 'top -n1 | grep mysql'