terminal.cab
No.
17
Date
Learning goal
Terminal Start, lesson 11
Level
1 of 3

Command of the day No. 17: wc -l

Purpose: Counts the lines of a file.

Syntax: wc -l file

Example:

wc -l logs/app.log
8 logs/app.log

Output from the simulator, as on a real Linux.

Options:

Try it in the terminal Share image

Fills in the command. Nothing runs until you press Enter.

Command of the day No. 17: wc -l. Purpose: Counts the lines of a file. Example: wc -l logs/app.log. Remember: wc -l counts lines, behind a pipe it counts anything.
The same card as an image, 1080 x 1350 pixels.

Today's card ยท All cards so far