cli.fail

Practice this fail.

How many lines?

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 wc, count newline characters in access.log. You do not need to display the log contents.

How many lines?

$ cat access.log

Too much output.

Which command counts newline characters in access.log?

3 attempts remaining

Read why this fix works

How many lines?

wc -l access.log

wc -l counts newline characters. A final unterminated line has no newline character and therefore is not added to that count.

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

Copy your result