I would like to have a percentage of the processor in descending order. When I give the command:
top -bn 1 | grep "^ " | awk '{ printf("%-8s %-8s \n", $2, $9); }' | head -8
It shows processes that are not the most popular with the CPU.
Running from above as a process (I am using Ubuntu 14.04)
top
Once on top ...
P <- Sort by CPU usage
M <- Sort by using MEM
z <- add cool visual colors
x <- Select the column you are currently sorting,
In your team you have
grep "^ "
which filters out lines that do not start with a space.
PID 4 , top PID 5 .
grep "^[0-9 ]" .
grep "^[0-9 ]"
Try on top with the -u flag: top -u
top -u
Source: https://habr.com/ru/post/1542661/More articles:Compilation MonoDevelop 4.2.3 - linuxpandoc-generated docx skips italic variables in equations - ms-wordCORS error while writing to Google documents from a site form - angularjsDoctrine Download Devices - Invalid Flag Does Not Work When Working With Symfony Team - symfonyProblems with persistent form layout in Delphi IDE - ideSetting DYLD variables for a stand-alone application at runtime - osx-mavericksHow to animate background size using jquery - jqueryС# mssql sql concatenation и множественные вставки - c#Compiling GWT 2.6.1 at the source level of Java 7 - javaHow can you calculate the number of backtracks in the Prolog SWI or CHR Prolog SWI - prologAll Articles