How to check linux memory usage

describe

Display the usage of system memory, including physical memory, swap memory (swap) and kernel buffer memory

command

free -h

parameter

free : Display the usage of system memory, including physical memory, swap memory (swap) and kernel buffer memory
-h, --human : show human-readable output

running results

              total        used        free      shared  buff/cache   available
Mem:           62Gi        58Gi       629Mi       6.0Mi       3.9Gi       3.8Gi
Swap:          31Gi        27Gi       3.9Gi

I hope to help every developer quickly find the commands they need. Of course, you can also add your own commonly used commands for easy searching.