Watch a process with top: Difference between revisions

From Cramsession
Jump to navigationJump to search
✍️ Verified Author: MflavellClick to view professional profile & credentials
(Created page with "Use pgrep <i>process</i> to find the PID then use top -p <i>pid</i> to watch it")
 
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
Use
[[Tech Notes]] > [[Linux]] > Watch a process with top
pgrep <i>process</i>
 
to find the PID
 
then use
 
top -p <i>pid</i> to watch it
First find the PID using this command:
 
pgrep process
 
 
then use this command to watch the process:
 
top -p pid

Latest 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