Linux查看内存使用情况


 description

查看总内存,已用内存,剩余内存

 command

free -h

 parameter

free : 显示系统内存的使用情况,包括物理内存、交换内存(swap)和内核缓冲区内存
-h, --human : 格式化输出

 result

              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.