Which of the following parameters are used for journalctl to limit the time frame of the output? (Choose TWO correct answers.)

A. --from=
B. --since=
C. --until=
D. --upto=
E. --date=

題解

「journalctl」指令可以用來顯示 systemd 的日誌,並非顯示傳統的 syslog。

選項 A,「journalctl」指令沒有「--from」參數。

選項 B,「journalctl」指令若加上「--since」參數,可以顯示指定日期之後的日誌。

選項 C,「journalctl」指令若加上「--until」參數,可以顯示指定日期之前的日誌。

選項 D,「journalctl」指令沒有「--upto」參數。

選項 E,「journalctl」指令沒有「--date」參數。