← 返回命令列表

Linux command

systemctl-list-timers 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Example

systemctl list-timers

Example

systemctl list-timers -a

Example

systemctl list-timers [pattern]

Example

systemctl list-timers --state [active|inactive|failed]

说明

systemctl list-timers displays timer units currently active in memory. The output shows next activation time, time until activation, last trigger time, time since last trigger, the timer unit, and the unit it activates. Timer units are systemd's replacement for cron, providing scheduled activation of services with more flexibility and better logging integration.

参数

-a, --all
Include inactive timers
--state= _STATE_
Filter by state
--no-legend
Suppress header and footer
--no-pager
Disable pager

FAQ

What is the systemctl-list-timers command used for?

systemctl list-timers displays timer units currently active in memory. The output shows next activation time, time until activation, last trigger time, time since last trigger, the timer unit, and the unit it activates. Timer units are systemd's replacement for cron, providing scheduled activation of services with more flexibility and better logging integration.

How do I run a basic systemctl-list-timers example?

Run `systemctl list-timers` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -a, --all do in systemctl-list-timers?

Include inactive timers