Last active
January 10, 2023 21:36
-
-
Save petergi/8bfa606741d6383e407ede8f58f3093a 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/bash | |
mem=$(sysctl -n hw.memsize) | |
mem="$((mem/1073741274)) GB" | |
echo $mem |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment