Skip to content

Instantly share code, notes, and snippets.

@tbsmcd
Created August 12, 2012 18:17
Show Gist options
  • Save tbsmcd/3333545 to your computer and use it in GitHub Desktop.
Save tbsmcd/3333545 to your computer and use it in GitHub Desktop.
#!/bin/sh
df -h | grep disk0s2 | awk '{print "SSD: " $3 " used " $4 " free"}'
top -l 2 | awk '/CPU usage/ && NR > 5 {print "CPU: " $3 " user " $5 " sys"}'
top -l 1 | awk '/PhysMem/ {print "RAM: " $10 " free " $8 " inactive " $6 " active " $2 " wired"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment