When viewing process information through the PS and top commands, you can only find the relative path, the details of the process not found, such as the absolute path. At this point, we need to see the details of the process in the following way:Linux When starting a process, the system will create a PID-named folder under/proc, where there will be information about our process, including a file named EXE, which records the absolute path, Can be viewed via the LL or LS–L commands.
Ll/proc/pid #PID代表进程对应的ID use PS and other commands to view
CWD Symbolic link is the process running directory;
EXE symbolic connection is the absolute path to execute the program;
CmdLine is the command line command that is entered when the program is run;
Environ records the environment variables when the process is running;
The FD directory is a symbolic connection of the files that the process opened or used.
Test as follows
linux-viewing the full path of a process