Signal9Signal9 — home
online
back to labs

Dojo: Most Common Status Code

MediumOne-Liner Dojo10 min
The brief

The access log /root/access.log is in combined format; the HTTP status code is field 9. In ONE line, find the SINGLE most frequent status code and write just that code to /root/answer.txt.

This is the full rank-and-count pipeline: extract the field, group, count, sort by count, take the top, and peel off the code. Chain it tight.

What you'll do
  • Write the most frequent HTTP status code from /root/access.log to /root/answer.txt, in one line

Hands-on lab: you work on a real Linux box in your browser, graded on the machine's actual state.