To find memory, use the free command.
free -m
Will show memory in MB.
The following is free -m on a server with 8 GB RAM.
boby@sok-01:~$ free -m
total used free shared buff/cache available
Mem: 7949 5560 715 137 1673 1984
Swap: 9536 2660 6876
boby@sok-01:~$
To display memory usage in a human friendly way, use
free -h
Example
boby@sok-01:~$ free -h
total used free shared buff/cache available
Mem: 7.8Gi 5.4Gi 686Mi 143Mi 1.6Gi 1.9Gi
Swap: 9.3Gi 2.6Gi 6.7Gi
boby@sok-01:~$

Leave a Reply