Which of the following commands is used to rotate, compress, and mail system logs?
A.
rotatelog
B.
striplog
C.
syslogd --rotate
D.
logrotate
E.
logger
題解
選項 A,沒有「rotatelog」指令。「rotatelogs」指令用來與 Apache 的導向型記錄檔作結合,可以利用時間間隔或是記錄檔的大小來輪替記錄檔。
選項 B,沒有「striplog」指令。
選項 C,「sysklogd」套件提供了兩個系統工具,來處理系統記錄和 Linux 核心訊息,同時支援網路和 IPC,所以本地端和遠端皆可使用。
選項 D,「logrotate」指令可以用來輪替、壓縮或是郵寄系統記錄。
選項 E,「logger」指令可以用來產生系統記錄。
