LFCS Log Management and Monitoring Flashcards
6 cards from real LFCS Certification practice questions. Tap to flip, then mark Knew It or Still Learning — missed cards come back until you master them.
Read the first 6 LFCS Log Management and Monitoring flashcards as text
What is the path to the main logrotate configuration file?
Answer: /etc/logrotate.conf
/etc/logrotate.conf is the primary configuration file that sets global defaults and includes /etc/logrotate.d/ snippets.
Which logrotate directive specifies how many old log file versions to keep?
Answer: rotate 4
The 'rotate N' directive tells logrotate to keep N old versions of a log file before deleting the oldest.
What does the `postrotate` / `endscript` block in a logrotate configuration do?
Answer: Runs a shell command or script after the log file has been rotated
postrotate/endscript executes commands (such as sending SIGHUP to a daemon) immediately after a log file is rotated.
Which logrotate option performs a dry run, showing what would happen without actually rotating logs?
Answer: logrotate -d
logrotate -d (debug mode) simulates the rotation process and prints actions to stdout without modifying any files.
Where should application-specific logrotate configuration files be placed?
Answer: /etc/logrotate.d/
Application packages drop their logrotate rules into /etc/logrotate.d/, which is included by the main /etc/logrotate.conf.
Which command shows the total disk usage of the /var/log directory to help monitor log growth?
Answer: du -sh /var/log
du -sh /var/log summarizes the total disk usage of the directory, making it easy to spot runaway log growth.
How this page was made: written with AI tools and published by Nathan Beja, founder of Practice Test Geeks, who is responsible for its content. Exam facts are checked against the official sources listed below. Not reviewed by a subject-matter expert. Editorial policy
Sources & references
Exam facts on this page (fees, format, dates, passing scores) are checked against these official sources; the date is our last check. Editorial policy
- docs.linuxfoundation.org — Renewal, score release, exam format, passing score · verified Oct 2026
- training.linuxfoundation.org — Test delivery, eligibility, fees, registration deadline, time limit, score validity · verified Oct 2026