Hands-on task
This task is step 10 of the course “Linux: everyday tasks”
How many times the site returned 404
An online shop is complaining about broken links. In the log /var/log/shop/access.log, find the requests the server answered with status 404 (page not found), count them, and write the number (just the number) to /root/notfound.txt.
What you'll practise:
- grep
- grep -c
- log parsing
- field boundaries
- counting lines