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
You can use single command pgrep as well (doesn't require you to use pipes and multiple commands):
pgrep -fl java