How to Use Linux cat Command for File Viewing and Analysis? Quick Answer: Use cat filename.txt to display file contents, cat -n filename.txt to show...
Bash
cat -n /var/log/nginx/error.log | grep -E "(404|500|503|502)"