Search notes:

Shell command: cat

cat concatenates files and prints their content to stdout.

Precede every line with the line number:

Cat precedes every line with its line number when invoked with -n.
cat -n file

See also

Combining cat with a here document to create a file.
tac prints the lines of a file in reverse order.
Shell commands
In cmd.exe, the contents of a file can be displayed with the type command.
In PowerShell, a file's content is returned by get-content.

Index