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
ps -eaf | grep [j]ava
It's better since it will only show you the active processes not including this command that also got java string the [] does the trick
[]