为什么这个标志不起作用?

1 linux command-line ubuntu

好的,所以我想查看 ram 并让它连续运行

     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
Run Code Online (Sandbox Code Playgroud)

第一个命令效果很好,但是添加 s 标志给了我一个错误,但我可以清楚地看到这是一个可用的标志......关于我做错了什么以及是否有更好的方法的任何想法

Tim*_*ham 9

请尝试以下操作。您没有关于多久进行一次更新的争论。

free -mt -s 3
Run Code Online (Sandbox Code Playgroud)