List of Java processes

前端 未结 18 2210
长发绾君心
长发绾君心 2020-12-22 16:44

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.

18条回答
  •  一整个雨季
    2020-12-22 17:04

     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

提交回复
热议问题