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 1: Line 1:
Use
[[Tech Notes]] > [[Linux]] > Watch a process with top


<pre>
First find the PID using this command:
pgrep process
</pre>


to find the PID
pgrep process


then use
 
<pre>
then use this command to watch the process:
top -p pid
 
</pre>
top -p pid
to watch it

Revision as of 21:06, 19 May 2025

Tech Notes > Linux > Watch a process with top

First find the PID using this command:

pgrep process


then use this command to watch the process:

top -p pid