Linux Find Process Run location

Source: Internet
Author: User

1. View the PID of the running process via PS or TOP command

PS -aux| grep php-fpm# or Top

2. After getting the PID of the process and then using the command Ls-l/proc/${pid}, this command can list the start location of the process.

ll/proc/22551

Total0Dr-xr-xr-x2www www0Jul5  One: theattr-rw-r--r--1www www0Jul5  One: theAutogroup-R--------1www www0Jul5  One: theAUXV-r--r--r--1www www0Jul5  One: theCgroup--W-------1www www0Jul5  One: theClear_refs-r--r--r--1www www0Jul5  .: -CmdLine-rw-r--r--1www www0Jul5  One: theCoredump_filter-r--r--r--1www www0Jul5  One: thecpusetlrwxrwxrwx1www www0Jul5  One: the/apps/php/lib/php/extensions/no-debug-zts-, CWD20151012-R--------1www www0Jul5  One: theenvironlrwxrwxrwx1www www0Jul5  -: theEXE-/apps/php/sbin/php-FPMDR-X------2www www0Jul5  One: thefddr-X------2www www0Jul5  One: theFdinfo-R--------1www www0Jul5  One: theio-RW-------1www www0Jul5  One: theLimits-rw-r--r--1www www0Jul5  One: theLoginuid-r--r--r--1www www0Jul5  One: theMaps-RW-------1www www0Jul5  One: theMem-r--r--r--1www www0Jul5  One: theMountinfo-r--r--r--1www www0Jul5  One: theMounts-R--------1www www0Jul5  One: theMOUNTSTATSDR-xr-xr-x6www www0Jul5  One: theNet-r--r--r--1www www0Jul5  One: theNuma_maps-rw-r--r--1www www0Jul5  One: theOom_adj-r--r--r--1www www0Jul5  One: theOom_score-rw-r--r--1www www0Jul5  One: theOom_score_adj-r--r--r--1www www0Jul5  One: thePagemap-r--r--r--1www www0Jul5  One: thepersonalitylrwxrwxrwx1www www0Jul5  One: theRoot-/-rw-r--r--1www www0Jul5  One: thesched-r--r--r--1www www0Jul5  One: theSchedstat-r--r--r--1www www0Jul5  One: theSessionID-r--r--r--1www www0Jul5  One: theSmaps-r--r--r--1www www0Jul5  One: theStack-r--r--r--1www www0Jul5  .: + Stat-r--r--r--1www www0Jul5  ,: -STATM-r--r--r--1www www0Jul5  .: -Status-r--r--r--1www www0Jul5  One: theSyscalldr-xr-xr-x3www www0Jul5  One: theTask-r--r--r--1www www0Jul5  One: theWchan

Linux Find Process Run location

Related Article

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.