cli.fail

Practice this fail.

The error is at the end.

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 tail, inspect only the last 20 lines of an existing app.log and return to the prompt.

The error is at the end.

$ cat app.log

Ten thousand lines later...

How do you print the last 20 lines once?

3 attempts remaining

Read why this fix works

The error is at the end.

tail -n 20 app.log

tail -n selects the final number of lines. Without -f, it reads the current file contents and exits.

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

Copy your result