Location and path where the process have been started using pid

Command:

pwdx <pid>