- 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.