Câu 37: XK0-005: CompTIA Linux+
A development team asks an engineer to guarantee the persistency of journal log files across system reboots. Which of the following commands would accomplish this task?
Nội dung câu hỏi
A development team asks an engineer to guarantee the persistency of journal log files across system reboots. Which of the following commands would accomplish this task?
Các lựa chọn
Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.
- A. grep -i auto /etc/systemd/journald.conf && systemctl restart systemd-journald.service
- B. cat /etc/systemd/journald.conf | awk '(print $1,$3)'
- C. sed -i 's/auto/persistent/g' /etc/systemd/journald.conf && sed -i 'persistent/s/ˆ#//q' /etc/systemd/journald.conf — đáp án hiện tại
- D. journalctl --list-boots && systemctl restart systemd-journald.service
Cộng đồng
0 bình luận công khai. Tên thành viên được ẩn một phần.
Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.