uptime
uptime 是个系统监测工具, 它会返回过去1分钟5分钟和15分钟的平均 负载 (Load Average). 如果 1 个CPU 当负载超过1的时候就得小心了 如果 2核的CPU 负载为2为比较正常, 以此类推.
1 2 | 没带参数的情况返回如下: 21:49:27 up 4 days, 23:38, 2 users, load average: 0.22, 0.27, 0.16 |
没带参数的情况返回如下: 21:49:27 up 4 days, 23:38, 2 users, load average: 0.22, 0.27, 0.16
同时支持以下参数:
1 2 3 4 5 6 7 8 9 10 | Usage: uptime [options] Options: -p, --pretty show uptime in pretty format -h, --help display this help and exit -s, --since system up since -V, --version output version information and exit For more details see uptime(1). |
Usage: uptime [options] Options: -p, --pretty show uptime in pretty format -h, --help display this help and exit -s, --since system up since -V, --version output version information and exit For more details see uptime(1).
例子:
1 2 3 4 | root@uploadbeta:/run/blog/cache8# uptime -p up 4 days, 23 hours, 38 minutes root@uploadbeta:/run/blog/cache8# uptime -s 2015-06-23 22:11:25 |
root@uploadbeta:/run/blog/cache8# uptime -p up 4 days, 23 hours, 38 minutes root@uploadbeta:/run/blog/cache8# uptime -s 2015-06-23 22:11:25
API 访问地址为: https://helloacm.com/api/uptime/
参数, p=-p or p=-h or p=-V or p=-s
返回 JSON字符串
cal
cal 是LINUX的文本命令行日历, 当没有给任何参数的时候 它返回当前月份.
API: https://helloacm.com/cal/
API 访问地址为: https://helloacm.com/api/cal/
英文: https://helloacm.com/two-linux-api-added-uptime-and-cal/
强烈推荐
- 英国代购-畅购英伦
- TopCashBack 返现 (英国购物必备, 积少成多, 我2年来一共得了3000多英镑)
- Quidco 返现 (也是很不错的英国返现网站, 返现率高)
- 注册就送10美元, 免费使用2个月的 DigitalOcean 云主机(性价比超高, 每月只需5美元)
- 注册就送10美元, 免费使用4个月的 Vultr 云主机(性价比超高, 每月只需2.5美元)
- 注册就送10美元, 免费使用2个月的 阿里 云主机(性价比超高, 每月只需4.5美元)
- 注册就送20美元, 免费使用4个月的 Linode 云主机(性价比超高, 每月只需5美元) (折扣码: PodCastInit2022)
- PlusNet 英国光纤(超快, 超划算! 用户名 doctorlai)
- 刷了美国运通信用卡一年得到的积分 换了 485英镑
- 注册就送50英镑 – 英国最便宜最划算的电气提供商
- 能把比特币莱特币变现的银行卡! 不需要手续费就可以把虚拟货币法币兑换
微信公众号: 小赖子的英国生活和资讯 JustYYUK