Last active
August 29, 2015 13:58
-
-
Save miguelmota/10183128 to your computer and use it in GitHub Desktop.
Get load average on Mac OSX
This file contains hidden or 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
# Method one - w | |
w | head -n1 | cut -d":" -f4 | |
# Method two - uptime | |
uptime | cut -d":" -f4- | sed s/,//g | |
# Method three - loads.d | |
sudo loads.d | awk '/./ { printf "%.2f %.2f %.2f\n", $7, $8, $9 }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment