Extract relevant information in accordance with the process PID

Say! ~ One fine day, you have found the process of consumption is very high, so we need to view information according to the PID of the process. So today start a discussion write a simple script refining. As long as PID can give focus to extract all the information you want. Take a look at the effect it.

Look at the PID we want to see:

 

 

We then execute the script written on the PID.

 

 

Well see. The above list of important information we have, of course, you can also add the information you want displayed on the script according to their own situation. Porco sustained attention Oh! To find ways for everyone to write all kinds of dry goods script! Ha ha ha ha ~

No public attention and reply:  PID   get the script

Guess you like

Origin www.cnblogs.com/devops-ITboge/p/12046423.html