CPU Percentage - taken from
http://stackoverflow.com/questions/9...-g-57-on-linux
Code:
top -bn1 | grep "Cpu(s)" | \
sed "s/.*, *\([0-9.]*\)%* id.*/\1/" | \
awk '{print 100 - $1"%"}'
Copy and paste this code in your terminal. Your cpu usage will be calculated to a percentage used.
Memory - taken from
http://www.tecmint.com/10-examples-o...-free-command/
-m shows in megabytes
-g shows in gigabytes
I generally use
top by itself for an overall analysis of the current session. BTW, top defaults to showing one CPU. To see all CPUs/cores in top, press the number 1 key...press 1 again to return to the default. For other options within top, press the ? mark.
Welcome to LQ