How can I list all Java processes in bash?
I need an command line. I know there is command ps
but I don\'t know what parameters I need to use.
ps axuwww | grep java | grep -v grep
The above will
(btw, this example is not the effective one, but simple to remember) ;)
you can pipe the above to another commands, for example:
ps axuwww | grep java | grep -v grep | sed '.....' | while read something
do
something_another $something
done
etc...