Menu
Coddy logo textTech

Recap - Text Detective

Part of the Fundamentals section of Coddy's Terminal journey — lesson 36 of 82.

challenge icon

Challenge

Easy

Put all your file content skills together! Run the following five commands in order:

  1. Show the first 3 lines of server.log
  2. Count the total number of lines in server.log
  3. Sort fruits.txt in alphabetical order
  4. Remove duplicate lines from duplicates.txt
  5. Find all error lines in server.log with their line numbers

You will need to run five commands in order. Think carefully about which command and flag each task requires!

Try it yourself

Terminal

All lessons in Fundamentals