echo

Print text or variable values to the terminal

echo prints text. echo $PATH prints the PATH variable. echo $? prints the exit code of the last command (0=success). echo -e enables escape sequences like \n.

Example

$ echo $HOME
$ echo $?
/home/ubuntu
0
Tip: Type it yourself in the terminal below - reading is not the same as doing.