| 用途 | 盘点与核对 systemd 定时器 |
|---|---|
| 语法 | systemctl list-timers [--all] [模式] |
常用示例
常用示例
systemctl list-timers --all --no-pager # 全部(含未激活)
systemctl list-timers 'backup*' # 过滤名字
systemctl list-timers --no-pager | head -n 20 # 概览
# 看单个 timer 与它拉起的 service
systemctl status backup.timer --no-pager
systemctl cat backup.timerLAST 列过旧而 NEXT 在未来:说明上次执行可能失败或被打断,配合 journalctl -u 对应 unit 一起看。