cat

Concatenate and print files. Useful for quick previews and piping.

Synopsis

cat [options] [file]

Core Options

-n

Number all output lines.

-b

Number non-blank lines.

-A

Show all characters (tabs, line endings).

-s

Squeeze repeated empty lines.

Usage Examples

Print File

Output file contents.

cat README.md

Number Lines

Show line numbers.

cat -n app.log

Concat Files

Merge files into one.

cat part1.txt part2.txt > full.txt
Built for builders.