1 2 3
#!/bin/sh sysctl -n hw.usermem hw.realmem | xargs | awk '{printf (" %2.2fGiB/%2.2fGiB\n", ($1 / (1024 ^ 3)), ($2 / (1024 ^ 3)))}'