Wednesday, August 29, 2018

how to check ubuntu free memory

$ free -m
you see like the following:
              total        used        free      shared  buff/cache   available
Mem:            985         661         191           1         132         185
Swap:             0           0           0


If you want memory usage and CPU consumption of each process:
$ top
or
$ htop
htop highlights information with color texts.