ubuntu 16.04 check memory usage code example Example 1: ubuntu memory command line watch -n 5 free -m Example 2: check vm ram details in linux sudo dmidecode -t 17