102-500 · Question #59
Which of the following commands shows all active systemd timers?
The correct answer is D. systemctl list-timers. systemctl list-timers is the correct command because systemctl is the primary interface for interacting with systemd, and list-timers is a valid subcommand that displays all active timers along with their next trigger time, last trigger time, and associated service unit. The…
Question
Options
- Asystemctl-timer show
- Btimectl list
- Csystemctl -t
- Dsystemctl list-timers
- Etimeq
How the community answered
(25 responses)- A4% (1)
- B8% (2)
- D76% (19)
- E12% (3)
Explanation
systemctl list-timers is the correct command because systemctl is the primary interface for interacting with systemd, and list-timers is a valid subcommand that displays all active timers along with their next trigger time, last trigger time, and associated service unit.
The distractors fail for these reasons:
- A (
systemctl-timer show) -systemctl-timeris not a real command; the correct binary issystemctl(no hyphen before "timer") - B (
timectl list) -timectlis a fabricated command; the realtimedatectlmanages system time/timezone settings, not timers - C (
systemctl -t) --tis a flag that filters by unit type (e.g.,systemctl -t service), not a standalone command for listing timers - E (
timeq) - this command does not exist in standard Linux distributions
Memory tip: Think of it as "list what's ticking" - systemctl list-timers follows the same pattern as systemctl list-units and systemctl list-sockets, so if you can list units, you can list timers the same way.
Topics
Community Discussion
No community discussion yet for this question.