
The echo command prints the given string.
It is also used to check the current shell’s environment variables.
echo [option] [string to print]
| Option | Description | |
|---|---|---|
| -n | Moves the cursor to the next line. | |
| -e | Performs the function set on the \(option). | |
| Option | Description | |
| \a | Prints a warning sound (bell). | |
| \b | Backspace | |
| \c | Does not print anything further. | |
| \n | Uses a newline character. | |
| \t | Horizontal tab | |
| \v | Vertical tab | |
| \\ | Backslash | |
| \f | Prints in form-feed form (a page break on a printer). | |
| \r | Carriage return [characters after the option are printed from the start of the line.] | |
| \0NNN | Prints the character whose ASCII CODE is NNN (octal). | |
| \xHH | Prints the character whose ASCII CODE is HH (HEX [hexadecimal]). | |
Command examples

Environment-variable examples

-n option command examples

-e option command examples
\b

\c

\n

\t

\v

\\

\r

\0NNN

\xHH

Comments 0
A nickname and a password are required. The same password edits or deletes the comment later. Comments appear after a review.