Get complete system info using Shell Commands
📅️ Published: July 19, 2020 • 🕣
1 min read
Below are a bunch of easy one-liner commands that gives information about various aspects of your Linux machine.
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) real-time update of your system.
If you have any other ideas, drop them below 👇