Linux – How to know the absolute path of a running process? on solaris

bashlinuxprocesspssolaris

this is the command to view the process path on Linux

ps -auxwe | grep 24466    ( 24466 is only example )

but please advice is it possible to view the path of running process on Solaris

if yes what the ps syntax for Solaris?

Best Answer

You can use pwdx in solaris and linux.

pwdx <pid_number>

example:

pwdx $$
25711:  /export/home/pippo