Skip to content

Instantly share code, notes, and snippets.

@jwerle
Created February 6, 2019 22:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jwerle/08ba705fb325e7777bee2121cafc4a12 to your computer and use it in GitHub Desktop.
Save jwerle/08ba705fb325e7777bee2121cafc4a12 to your computer and use it in GitHub Desktop.
josephwerle@werle:~/repos/termite$ sudo dmidecode -t 17 | grep "Size.*MB" | awk '{s+=$2} END {print s / 1024}'
4
josephwerle@werle:~/repos/termite$ awk '/MemTotal/ {print $2}' /proc/meminfo
3955724
josephwerle@werle:~/repos/termite$ free -g
total used free shared buff/cache available
Mem: 3 2 0 0 0 0
Swap: 8 0 7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment