Find the answer to your Linux question:
Results 1 to 7 of 7
how can I find what file is a process run from ? thanks...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2013
    Posts
    34

    file starting process


    how can I find what file is a process run from ?
    thanks

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,529
    Either use the which or whereis command. IE,
    Code:
    which progname
    
    #or
    
    whereis progname
    The which command will show the path using your current PATH environment variable to the first instance of progname, such as /usr/bin/progname.
    The whereis command will find not only do that, but other instances, man pages, libraries, etc that match the name. Example, the command "whereis bash" will generally return "/bin/bash /usr/share/man/man1/bash.1.gz"
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    Feb 2013
    Posts
    34
    why they don't give me the path of kintegrityd process ?

  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,529
    Quote Originally Posted by umbloaded View Post
    why they don't give me the path of kintegrityd process ?
    That is a daemon process, probably started by root, and may be started by using its absolute path. If it is not in your PATH or normal executable locations, then which and whereis will not find it. A common location for optional tools like this is in /opt/modulename, such as /opt/kintegrity/bin or something like that.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Just Joined!
    Join Date
    May 2011
    Location
    Central FL
    Posts
    91
    I believe the problem is different than looking for the path of something. I think the OP is trying to find out why/where a particular service is being started from (e.g., /etc/rc.local, /etc/init.d/, /etc/rc?.d/ and thus). For that, most likely your best bet is to look around for that process name in /etc/ and its subdirectories using grep.

    My apologies if my interpretation of the original question are incorrect.

  6. #6
    Just Joined!
    Join Date
    Feb 2013
    Posts
    34
    my /opt folder is empty

  7. #7
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,758
    Quote Originally Posted by umbloaded View Post
    why they don't give me the path of kintegrityd process ?
    Is it a kernel module ? If I'm not wrong, It may be a kernel thread.
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •