Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

4
  • The question states “as I can see with ps”, so it will probably display the PID
    – Scz
    Commented Apr 9, 2017 at 13:24
  • Ah ok true. I still find this to be a quicker one liner in many of my use cases.
    – moodboom
    Commented Apr 9, 2017 at 15:41
  • This tells you the current working directory of the process, not the path to its executable. Commented Jan 14, 2021 at 20:08
  • Good point, they may be different.
    – moodboom
    Commented Jan 15, 2021 at 15:56