system loads in GNU screen's hardstatus line


I use screen a lot on my Linux. I wanted to change the hardstatus line a bit.
I want to add CPU and Memory usage information to the line but I don’t know how.
after some searches in Google all I could find was %l option to add system loads.

my line (which is copied) looks like this:

hardstatus alwayslastline '%{= G}[ %{G}%H %{g}][%= %{= w}%?%-Lw%?%{= R}%n*%f %t%?%{= R}(%u)%?%{= w}%+Lw%?%= %{= g}][ %{y}Load: %l %{g}][%{B}%D %d-%    M-%Y %{W}%C:%s %A %{g}]'

and my screen hardstatus line is like this:
enter image description here

now what are the three numbers defined ad load ??
and how can I change them to something like CPU load 28% Mem Load 43% or similar?


To keep it short:

The three numbers stand for average cpu load during the last minute, 5 minutes and 15 minutes where 0 means 0% load and 1.0 means 100% load.

Have a look at this excellent explanation of the cpu load.

For the second question I’m not sure if you can express the system load with only one number in the hardstatus line of screen (I don’t think so), but I hope my answer helped a little bit 😉 *Jost

Answered By – Jost

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published