Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

CompTIA Exam XK0-005 Topic 3 Question 27 Discussion

Actual exam question for CompTIA's XK0-005 exam
Question #: 27
Topic #: 3
[All XK0-005 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: B

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.


Contribute your Thoughts:

Gerald
2 days ago
No, just using journalctl --rotate should be sufficient.
upvoted 0 times
...
Mindy
3 days ago
Should we also use journalctl --vacuum-time=ls?
upvoted 0 times
...
Skye
4 days ago
Yes, journalctl --rotate should help free up the disk space.
upvoted 0 times
...
Gerald
5 days ago
I think we should use the journalctl command to rotate the logs.
upvoted 0 times
Lamar
18 hours ago
A) journalctl --rotate
upvoted 0 times
...
...
Mindy
6 days ago
The journald entries have filled up the /var volume. What should we do?
upvoted 0 times
...

Save Cancel