ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 293 - XK0-005 discussion

Report
Export

The journald entries have filled a Linux machine's /var volume. Which of the following is the best command for a systems administrator to use to free up the disk space occupied by these entries?

A.
journalctl ---rotate journalctl --vacuum-time=ls
Answers
A.
journalctl ---rotate journalctl --vacuum-time=ls
B.
systemctl stop systemd-journald systemctl start systemd-journald
Answers
B.
systemctl stop systemd-journald systemctl start systemd-journald
C.
rm -rf /var/log/journal systemctl restart systemd-journald
Answers
C.
rm -rf /var/log/journal systemctl restart systemd-journald
D.
pkill -HUP systemd-journald systemctl restart systemd-journald
Answers
D.
pkill -HUP systemd-journald systemctl restart systemd-journald
Suggested answer: B

Explanation:

systemctl stop systemd-journald systemctl start systemd-journald is the best approach among the given options. Stopping and starting the systemd-journald service can help in managing the disk space used by journal logs without manually deleting log files or using more aggressive cleanup methods. This method ensures that log management is handled gracefully by the system's own services.

asked 02/10/2024
Zaid Mohammed Haqqani
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first