View Process

View processes under linux with ps -ef | grep XXX
when viewing process information through ps and top command, can only be found in the relative path, the process of finding out more information, such as absolute paths. At this point, we need to see the details of the process by the following method:
Linux when you start a process, the system creates a folder named to the PID in / proc, we will process the information in this folder , which includes a file called exe that is an absolute record path, to see through ll or ls -l command.
the -l LS / proc / PID
CWD symbolic link is the process run directory;
EXE symbolic link is the absolute path of program execution;
command is entered cmdline program is running command line;
Environ recording process environment variables at runtime;
under fd directory is a symbolic link or use the process to open the file.

Guess you like

Origin www.cnblogs.com/weiyoutongxing/p/11326274.html