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
4 days ago
No, just using journalctl --rotate should be sufficient.
upvoted 0 times
...
Mindy
5 days ago
Should we also use journalctl --vacuum-time=ls?
upvoted 0 times
...
Skye
6 days ago
Yes, journalctl --rotate should help free up the disk space.
upvoted 0 times
...
Gerald
7 days ago
I think we should use the journalctl command to rotate the logs.
upvoted 0 times
Esteban
15 hours ago
C) rm -rf /var/log/journal
upvoted 0 times
...
Chaya
2 days ago
B) systemctl stop systemd-journald
upvoted 0 times
...
Lamar
3 days ago
A) journalctl --rotate
upvoted 0 times
...
...
Mindy
8 days ago
The journald entries have filled up the /var volume. What should we do?
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77