cli.fail

Practice this fail.

Start at the beginning.

Linux · Restart as often as you like

Read the error, choose a command, and learn
why it works. Nothing runs on your machine.

Browse all practice ↗

Linux · Beginner

Using GNU head, print only the first 10 lines of data.csv without changing it.

Start at the beginning.

$ cat data.csv

The file has 50,000 rows.

How do you preview its first 10 lines?

3 attempts remaining

Read why this fix works

Start at the beginning.

head -n 10 data.csv

head prints the beginning of its input. The explicit -n 10 makes the requested count clear; 10 is also the normal default.

Practice rounds do not affect the daily score or local streak. Try today’s challenge, or choose another scenario.

Copy your result