how to check if a java process is running in linux code example Example: list java processes ps aux | grep java