💻 Software
Filtering top command output
Fresh5 days ago
Mar 15, 202624347 viewsConfidence Score0%
0%
Problem
I'm running a Mac and want to filter the output of the command for a particular process such that only the PID, COMMAND and %CPU columns are displayed. After getting the PID of the process, I run: However this displays more than 15 columns for that process. Can I pipe the output of 'the command in …
Error Output
top -pid 1234
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Filtering top command output
Low Risk
: your process ID : only show process ID, name and CPU% No need to run on the output. If you want to post-process the output, use to run in logging mode (0 means indefinitely, everything else limits number of samples). Output will look like this (tw…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix