thinQmaster Virtual testing partner Adaptive practice exams that find your weak spots and drill them. Every answer explained. From $69
Enroll

thinQmaster

Find your exam

Five questions free, before you decide.

Step 1 · choose a vendor

In one of our camps? Your practice exams come with the tuition — they are on your study page already.

Systems & Data Center · Intermediate

logrotate

A Linux utility that rotates, compresses and removes old log files on a schedule to control disk usage.

Definition

Configuration in /etc/logrotate.conf and /etc/logrotate.d sets rotation frequency, number of rotations kept, compression and post-rotate commands such as reloading a service. It usually runs daily from a systemd timer or cron.

Example

A rule with weekly, rotate 4 and compress keeps four compressed weekly logs.

Exam tip

If /var fills with logs, check that logrotate is configured and running for that application.

Related terms