Adding values on command line..
I have the following command
ps -e -o pcpu | sed '/0.0/d' | grep -v CPU
this outputs the cpu usage of all processes that are using the cpu - how can I add these all together? Alternatively - how can I get the current CPU usage from the command-line? All of the commands I've seen so far provide it for the last 5 mins etc but not for the present time.
|