ubuntu check free ram code example
Example 1: ubuntu memory command line
watch -n 5 free -m
Example 2: how can I check the memory of computer in ubuntu
$ sudo apt-get update
$ sudo apt install htop
$ htop
Example 3: get ram of ubuntu
free -h
# total used free shared buff/cache available
#Mem: --> 7.7G <-- 6.2G 157M 503M 1.3G 709M
#Swap: 2.0G 118M 1.9G