How to identify if a process is java or c or c++ process in linux? -


ps -eaf | grep java command not solution here identify if process java process or not, many of java processes not listed in output after executing command.

short answer (hopefully writes more comprehensive one):

  1. get process pid

  2. go /proc/<pid>

  3. look process binary file there

  4. run commands file , ldd on , see can figure out output (check man pages of commands, of course).

  5. use lsof command see files process has open, , see if include telltale libraries or similar files.