linux-viewing the full path of a process

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.