Is there a command which outputs just current CPU usage percentage and current memory usage percentage? As a single number, so no tables or formatted output.
The reason I'm asking. For my panel in XFCE I'd like to see something like this:
CPU 34% | MEM 56%
I haven't found a plugin which does that, so I aim to use the Generic Monitor plugin and give it a command which it should print and let it update every 1 sec.