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.