top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

Linux: How to get full path of running process or binary through command ?

+5 votes
358 views
Linux: How to get full path of running process or binary through command ?
posted Nov 25, 2013 by Vikram Singh

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button
use 'which' command provide the full path...

2 Answers

0 votes

First check the process it of the process then u can extract all the info related to that process from /proc

For full path/name of the running process
In place of process id give ur process id for the process u r running

cat /proc/PROCESS_ID_NO/cmdline
answer Nov 25, 2013 by Sachidananda Sahu
0 votes

'which' only tells about its location , not about the running Process.

$ps -ax

will list down all the process with its command line execution

answer Jul 14, 2014 by Luv Singh
Similar Questions
+2 votes

I want to run a command in every 10 minute which should return the maximum CPU utilization of a linux machine in last 10 min irrespective of no. of core present.
Thanks in advance.

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...