Created
August 12, 2012 18:17
-
-
Save tbsmcd/3333545 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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