Grep 日志筛选

排查日志时最常见的是 grep


grep -n "error" app.log

grep -i "timeout" app.log

grep -R "listen 80" /etc/nginx