echo

Linux · Terminal · available in the simulator

What it does

Display a line of text.

Syntax

echo [-n] [-e] [texto...]

Options and parameters

  • -n

    Do not output the trailing newline.

  • -e

    Enable interpretation of backslash escapes such as \n or \t.

    echo -e "linea1\nlinea2"

Usage examples

  • echo Hola
  • echo -n sin_salto
  • echo -e 'linea1\nlinea2'
  • echo -e 'a\nb'
  • echo -e "linea1\nlinea2"
Practise echo

Related commands