Notes & TILs
Search…
Get System info using Shell Commands
Posted on 19 July, 2020

Memory Used/Total

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

Show CPU temperature

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

Most Memory Intensive processes

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

Most CPU Intensive processes

1
ps axch -o cmd:15,%cpu --sort=-%cpu | head
Copied!
I wrote a small shell script to get (almost) realtime update of your system.
Last modified 19d ago