To printing all running jar on the server, the command is below:
ps -aux|grep java
But I want to get the output like below so that I can know the absolute path of running jars in the system:
Running_jar Absolute_path
test.jar /var/www/html/test/
test2.jar /var/www/html/test2/
Can anyone help how I can achieve this output with any bash command?