terminal.cab

All commands

echo

Topic: Shell and scripts

Shell builtin: echo

Prints its arguments as text.

Package: core-shell

Usage

echo [-neE] [arg ...]

Description

Write the ARGs to standard output, with one space between them and a newline at the end.

Options in the simulator

Program: echo

Prints its arguments as text.

Package: core-shell

Usage

echo [OPTION]... [STRING]...

Description

Write the ARGs to standard output, with one space between them and a newline at the end.

Options in the simulator

1 more options of the real program, not in the simulator yet
  • --version not in the simulator yet

    On a real system it prints the version of the program.

Examples

From the lesson Creating folders and files
echo "Buy bread" > shopping.txt
cat shopping.txt
Buy bread

Try it in the terminal

From the lesson Chaining commands
echo "Pay the rent" >> notes.txt
cat notes.txt
Buy milk
Call the dentist
Water the plants
Pay the rent

Try it in the terminal

Where you learn it

Lessons

All commands