I am working with a remote server which runs tmux. I want to be able to open a one-line pane with server memory report updated in realtime. Like top
or htop
. Is there such a command line utility? Is there a better alternative?
UPDATE
As the original formulation is somewhat ambigous, I'll explain some more. I have also added "CPU" in the title since that too would be nice, and such programs often have CPU indicators too.
- I know what programs are running on the server, so I do not need the list of processes. That is - if memory is taken, I know what is occupying it. Simply showing some readout on how much RAM is busy would be enough. If I'll need more info, I'll refer to
htop
. - CPU load can also be displayed along the memory info. Again, it is a matter of about 5-6 characters per 1 core.
- If there's more info than can fit in the line, it could swap "pages" on display.
- The whole point is to have a tiny readout, akin to those that are rather common to reside in tray area on graphical desktops under Linux or Windows (in Windows, for example, there's a ton of programs that show that info in tray area, taking a couple of square centimeters of screen space).
All these are just wishes in the direction of what I'd like to have. Probably there's some program that can do this or something like this.
free
program shows total memory usage; are you interested in percentage occupied instead? Also, how long is the line allowed to be? For example, should it be 80 columns or less, or are arbitrarily long lines allowed?