How to find the script of a process in linux

1、ps -ef |grep XXXXX

get the PID

2、ll /proc/PID

get the directory through the CWD link
Written on March 3, 2014