Run logrotate -d /etc/logrotate.d/nginx.
logrotate -d /etc/logrotate.d/nginx
Dry-run log rotation without moving files.
Text and logslogrotatefind
Click any instruction for the command details, the why, and the common mistake to avoid.
Run logrotate -d /etc/logrotate.d/nginx.
logrotate -d /etc/logrotate.d/nginx
Run find /var/log -name .1.
find /var/log -name .1
Run tail -n 2 /var/log/nginx-access.log.1.
tail -n 2 /var/log/nginx-access.log.1
Create a free account to sync completed lessons, XP, streaks, course status, and your next lesson across sessions.
Checking account status...
Progress sync is idle.
Progress sync stores completion IDs, scores, streaks, badges, and game settings. Terminal contents, editor snippets, lab scratch, email, and real names are never published on leaderboards or share cards.
Dry-run log rotation without moving files.
Run the commands in order and compare the outputs.
Junior operators build confidence by gathering evidence before changing systems.
find [path] [-name text]
Search lab filesystem paths.
logrotate -d <config>
Dry-run a simulated log rotation config.