Linux Commands Helper
💬 Your AI-powered Linux assistant
echo Command - Display a Line of Text
The echo command is used to output the specified string or variables to the terminal.
Syntax
echo [options] [string...]
Examples
echo Hello World
Display "Hello World" in the terminal.
echo $HOME
Display the value of the HOME environment variable.
echo -e "Line1\\nLine2"
Display two lines using the escape sequence for a new line.
Notes
- The echo command is built into most shells.
- The
-e
option enables interpretation of backslash escapes.