🧀 Learn Linux

Commonly used · Reading and processing text

cat:Read and concatenate text

Put in free practice

Syntax

cat [-n] [file…]

Options

-n
Number the output rows

Examples

cat README.txt

Usage and sandbox support

Read from a pipe or input redirect without a file argument.

Hands-on exercises

Full documentation ↗

Related commands