Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does the bold line in the bash `top` command output signify? [closed]

Tags:

bash

The top command in bash outputs something like

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 4724 root      20   0 4986596 4.425g  26404 R  47.2 30.1   3:49.97 python
 4681 root      20   0 7704444 602344  38844 S  12.6  3.9   1:15.40 java
  483 root      20   0 7727184 999976  29428 S   3.0  6.5   0:44.70 java

Except that in bash one of the rows is usually in bold. Its usually the top (most resource intensive) row, but not always.

What does it mean?

like image 940
Roman Avatar asked Sep 06 '17 09:09

Roman


1 Answers

First, the output of top can be configured. Some distros (Ubuntu for example) will display running processes in bold letters by default.

Look at the S column. That means state. R means running.


For further info about the top options check the man page and/or use the (nice) interactive help which you can enter by pressing h when top is running.

like image 62
hek2mgl Avatar answered Nov 05 '22 17:11

hek2mgl