
さて、だからメモリを見て実行し続けたい
root@another:/etc/mysql/database_backups# free -mt
total used free shared buffers cached
Mem: 998 870 127 0 92 362
-/+ buffers/cache: 415 582
Swap: 2047 31 2016
Total: 3046 902 2144
root@another:/etc/mysql/database_backups# free -mts
free: option requires an argument -- 's'
usage: 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
最初のコマンドはうまく機能しますが、sフラグを追加するとエラーが発生しますが、これが利用可能なフラグであることがはっきりとわかります。
答え1
以下を試してください。更新頻度について異議はありません。
free -mt -s 3