Watch a process with top: Difference between revisions

From Cramsession
Jump to navigationJump to search
✍️ Verified Author: MflavellClick to view professional profile & credentials
No edit summary
No edit summary
Line 2: Line 2:


<pre>
<pre>
pgrep <i>process</i>
pgrep process
</pre>
</pre>


Line 9: Line 9:
then use
then use


<pre>
 
top -p <i>pid</i> to watch it
top -p pid
</pre>
 
to watch it

Revision as of 15:36, 13 June 2024

Use

pgrep process

to find the PID

then use


top -p pid

to watch it