echo
ShellBeginner In simulator In real LinuxPrint a line of text
Name: echo: echoes its arguments back
You can practise it right away in the simulator, and use it in real Linux mode too.
Description
echo prints its arguments separated by spaces, followed by a newline. bash has a builtin echo and there is also /usr/bin/echo.
Implementations differ in how they treat -e and escape sequences; when exact formatting matters, prefer printf.
Syntax
echo [OPTION]... [STRING]...Common options
| -n | Do not print the trailing newline |
| -e | Interpret escapes such as \n and \t |
| -E | Do not interpret backslash escapes (the default) |