top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

+5 votes
1,166 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 LinkedIn 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.

...