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?
To safely reduce the size of journald logs, journalctl --rotate forces log rotation, and journalctl --vacuum-time=1s removes entries older than the specified time. This approach efficiently manages log files without directly deleting files, which could risk corruption. CompTIA Linux+ advises controlled log management for journald to avoid unintended data loss. Reference: CompTIA Linux+ Study Guide.
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit