Follow multiple log files linux
Stream multiple log files interleaved in one terminal
tail -f /var/log/syslog /var/log/auth.log
more linux
all 133 commands →
Search compressed logs
zgrep -i 'error' /var/log/syslog.*.gz
Rotate logs manually
logrotate -f /etc/logrotate.conf
List cron jobs system-wide
for u in $(cut -f1 -d: /etc/passwd); do crontab -l -u $u 2>/dev/null | grep -v '^#' | sed "s|^|$u: |"; done
Cron expression tester
systemd-analyze calendar '*/5 * * * *'
Redirect stderr to file
command > /tmp/out.log 2> /tmp/err.log