Count lines in all logs
Find the biggest log files by line count
find /var/log -name '*.log' -exec wc -l {} + | sort -rn | head -20
- tool
- linux133 commands
More linux commands
-
tail -f /var/log/syslog /var/log/auth.logStream multiple log files interleaved in one terminal
-
zgrep -i 'error' /var/log/syslog.*.gzgrep inside .gz files without manual decompression
-
logrotate -f /etc/logrotate.confForce log rotation regardless of schedule
-
for u in $(cut -f1 -d: /etc/passwd); do crontab -l -u $u 2>/dev/null | grep -v '^#' | sed "s|^|$u: |"; donePrint active cron lines for every user
-
systemd-analyze calendar '*/5 * * * *'Parse and show next 5 trigger times for a cron expression