Watch a process with top: Difference between revisions
From Cramsession
Jump to navigationJump to search
✍️ Verified Author: Mflavell • Click to view professional profile & credentials
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
Use | Use | ||
<pre> | |||
pgrep <i>process</i> | pgrep <i>process</i> | ||
</pre> | |||
to find the PID | to find the PID | ||
| Line 7: | Line 9: | ||
then use | then use | ||
<pre> | |||
top -p <i>pid</i> to watch it | top -p <i>pid</i> to watch it | ||
</pre> | |||
Revision as of 15:36, 13 June 2024
Use
pgrep <i>process</i>
to find the PID
then use
top -p <i>pid</i> to watch it