摘要: #!/bin/bash # 获取虚拟机启动时间戳 boot_timestamp=$(date -d "$(uptime -s)" +%s) # 当前时间戳 current_timestamp=$(date +%s) # 计算运行时长(以秒为单位) runtime=$((current_timesta 阅读全文
posted @ 2023-07-18 15:10 吃吃吃大王 阅读(121) 评论(0) 推荐(0)