ubuntu see used memory 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
watch -n 5 free -m
$ sudo apt-get update
$ sudo apt install htop
$ htop