terminal.cab
No.
13
Date
Learning goal
Terminal Start, lesson 5
Level
1 of 3

Command of the day No. 13: cat -n

Purpose: Shows a file with numbered lines.

Syntax: cat -n file

Example:

cat -n todo.txt
     1  1. tidy up Downloads
     2  2. read the 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. 13: cat -n. Purpose: Shows a file with numbered lines. Example: cat -n todo.txt. Remember: Line numbers help when a message names a line.
The same card as an image, 1080 x 1350 pixels.

Today's card ยท All cards so far