SpinTheMic
Pro

Interview practice question

Finding errors in a large log file

Cloud & DevOps · Linux and Scripting · Beginner

A 5 GB log file contains thousands of lines. How do you quickly find errors from the last hour?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • grep with time pattern and ERROR.
  • tail -n large count first.
  • journalctl --since "1 hour ago".
  • awk for time ranges.
  • less for browsing.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics