cat

Linux · Text · available in the simulator

What it does

Displays file contents.

Syntax

cat [opciones] [archivo...]

Options and parameters

  • -n

    Numbers all output lines.

    cat -n archivo.txt
  • -b

    Numbers non-blank output lines.

  • -A

    Displays invisible characters: tabs, line endings, and non-printing characters.

  • -s

    Suppresses repeated empty output lines into a single blank line.

  • -E

    Displays $ at the end of each line.

  • -T

    Displays TAB characters as ^I.

Usage examples

  • cat saludos.txt
  • cat -n saludos.txt
  • cat notas.txt
  • cat -n archivo.txt
Practise cat

Related commands