問題 lpic-102-500-topic-1-question-17・第3版

systemdで現在稼働しているタイマーと次の実行予定を一覧表示するコマンドはどれか。

  1. A systemctl-timer show
  2. B timectl list
  3. C systemctl --timer
  4. D systemctl list-timers
  5. E timeq

正解:D

理由

systemctl list-timersはタイマーの一覧と実行予定を表示する。停止中も含める場合は--allなどを指定する。

選択肢ごとの説明

A. systemctl-timer show

systemctl-timerという標準の命令ではない。

B. timectl list

この用途の標準の命令名ではない。

C. systemctl --timer

--timerという単独オプションでは、次回実行予定の一覧を指定できない。

D. systemctl list-timers

タイマーと予定の一覧を表示する。

E. timeq

この用途の標準の命令名ではない。

関連する解説

cron、atとsystemd timer

参考資料

お問い合わせ

演習する →