Today I Learned
Search…
Get System info using Shell Commands
Posted on 19 July, 2020

Memory Used/Total

free -h | awk '/^Mem:/ {print $3 "/" $2}'

Show CPU temperature

sensors | awk '/^Core*/ {print $1$2, $3}'

Most Memory Intensive processes

ps axch -o cmd:15,%mem --sort=-%mem | head

Most CPU Intensive processes

ps axch -o cmd:15,%cpu --sort=-%cpu | head
I wrote a small shell script to get (almost) realtime update of your system.
Copy link
Edit on GitHub
On this page
Memory Used/Total
Show CPU temperature
Most Memory Intensive processes
Most CPU Intensive processes