๐ŸŽ New User? Get 20% off your first purchase with code NEWUSER20 ยท โšก Instant download ยท ๐Ÿ”’ Secure checkout Register Now โ†’
Menu

Categories

Linux Intermediate

What is Logrotate?

A utility that manages automatic rotation, compression, and removal of log files to prevent disk space exhaustion.

Logrotate runs via cron and handles log file management. Configuration in /etc/logrotate.d/ specifies rotation frequency (daily, weekly), retention count, compression, and post-rotation scripts.

Options include size-based rotation, date-based naming, copying vs moving, and custom scripts for restarting services after rotation. Without logrotate, log files would grow indefinitely and fill disk space.

Related Terms

Tmux
A terminal multiplexer that allows running multiple terminal sessions within a single window, with detach/reattach capability.
SELinux
Security-Enhanced Linux โ€” a mandatory access control system that confines programs to minimum required privileges beyond standard file permissions.
Package Manager
A tool that automates the process of installing, updating, configuring, and removing software packages.
LVM (Logical Volume Manager)
A storage management framework that provides flexible disk management through abstract layers of physical and logical volumes.
Grep
A command-line utility for searching plain-text data for lines matching a regular expression pattern.
Curl
A versatile command-line tool for transferring data using various network protocols, commonly used for API testing.
View All Linux Terms โ†’