sudo gzip -t /var/log/nginx/access.log.1.gz

Category: Self-Hosting

sudo gzip -t /var/log/nginx/access.log.1.gz

Test the integrity of a rotated, compressed Nginx log file

Checks that a rotated, compressed log file isn't corrupt. Nginx log rotation is usually handled by logrotate automatically.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.