最近跟着VPS的技术在慢慢熟悉Linux系统要用到的一些常用命令,不过目前还没有计划要去学习博大精深的Linux,能抽出时间把PHP基本掌握就已经很不错了。
这个命令是用来查看内存使用率的,很有用:
一般形式:
free -m
以下是free命令的语法,你可以去尝试一下,都是和内存有关的:
free [-b|-k|-m|-g] [-l] [-o] [-t] [-s delay] [-c count] [-V]
-b,-k,-m,-g show output in bytes, KB, MB, or GB
-l show detailed low and high memory statistics
-o use old format (no -/+buffers/cache line)
-t display total for RAM + swap
-s update every [delay] seconds
-c update [count] times
-V display version information and exit