Get System info using Shell Commands

January 18, 2025 ยท View on GitHub

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.

Contents

  1. 1Memory Used/Total
  2. 2Show CPU temperature
  3. 3Most Memory Intensive processes
  4. 4Most CPU Intensive processes