Skip to content
zero2vibecodelearn vibe coding

What wc -l does

wc -l notes.txt: Count the lines in a file.

The wc command page covers what it does in general, with an example.

wc-lnotes.txt
  • wc— command — count lines / words / characters
  • -l— flag — lines
  • notes.txt— argument: a file, a folder, or text

What it does when you run it

$ wc -l notes.txt
4 notes.txt

Run it yourself

The same files. Nothing here can break, and nothing leaves your browser.

Explain other commands

Written by Mikhail Kuzmitskii