Modern QA2026Hands-On Exercise — tiles
Log inJoin
23 / 55 · 19 Linux & Command Line · grep, curl, and jq← prev⊞ allnext →☰ Read as one page

3.8Hands-On Exercise

  1. Use grep to find all ERROR lines in a log file, then count how many unique error messages there are
  2. Use curl to make a GET and POST request to a public API (e.g., https://jsonplaceholder.typicode.com)
  3. Use jq to extract and filter data from the API response
  4. Combine all three: fetch a list of users with curl, parse with jq to find admins, and pipe through grep to find a specific email domain
  5. Time an API request with curl -w and identify which phase (DNS, connect, TLS, first byte) is slowest
  6. Write a one-liner that monitors an endpoint every 10 seconds and logs the status code and response time