top¶
Get Current CPU Usage¶
Monitor specific process (ie apache) using Top¶
Kill processes hogging up CPU (Flash after resume)¶
Show the number of current httpd processes¶
View process statistics in realtime¶
Use top to monitor only all processes with the same name fragment 'foo'¶
count processes with status "D" uninterruptible sleep¶
top -b -n 1 | awk '{if (NR <=7) print; else if ($8 == "D") {print; count++} } END {print "Total status D: "count}'
Processes by CPU usage¶
Use top to monitor only all processes with the same name fragment 'foo'¶
Top Command in batch mode¶
Use top to monitor only all processes with the same name fragment 'foo'¶
Shows cpu load in percent¶
Monitor especific process with top¶
Display the top ten running processes - sorted by memory usage¶
Use top to monitor only all processes with the same name fragment 'foo'¶
count processes with status "D" uninterruptible sleep¶
top -b -n 1 | awk '{if (NR <=7) print; else if ($8 == "D") {print; count++} } END {print "Total status D: "count}'
Processes by CPU usage¶
Use top to monitor only all processes with the same name fragment 'foo'¶
Top Command in batch mode¶
Use top to monitor only all processes with the same name fragment 'foo'¶
Shows cpu load in percent¶
Monitor especific process with top¶
Last update: August 10, 2022
Created: August 10, 2022
Created: August 10, 2022