top 只看某個指令

如果只想看 python3 的指令

$ top -p `pgrep -d "," python3`

如果只想看某個 process id 的指令

$ top -p PID

如果也想看某個 process id 記憶體用量 及 記憶體使用

$ pmap PID

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.