-
-
Save geraldstanje/5e1ff16530d641980315 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
# 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