exam questions

Exam LX0-104 All Questions

View all questions & answers for the LX0-104 exam

Exam LX0-104 topic 4 question 20 discussion

Actual exam question from CompTIA's LX0-104
Question #: 20
Topic #: 4
[All LX0-104 Questions]

Which of the following commands is used to rotate, compress, and mail system logs?

  • A. rotatelog
  • B. striplog
  • C. syslogd --rotate
  • D. logrotate
  • E. logger
Show Suggested Answer Hide Answer
Suggested Answer: D 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
linux_admin
2 years, 2 months ago
The logrotate command is used to rotate, compress, and mail system logs. System logs are a critical part of system administration, as they provide valuable information about the performance and operation of a system. However, system logs can quickly become large and unwieldy, leading to disk space and performance issues. The logrotate command addresses this problem by automatically rotating system logs on a regular basis. This means that older logs are compressed and archived, and the current logs are truncated. This helps to conserve disk space and prevent logs from consuming too much disk space. logrotate can be configured to perform a variety of tasks, including rotating logs daily, weekly, or monthly; compressing rotated logs using gzip, bzip2, or other compression algorithms; mailing rotated logs to specified recipients; and preserving specified numbers of old logs for historical reference. The logrotate command is typically executed by a cron job or run by a script as part of a system's boot process.
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago