Linux Commands Helper
💬 Your AI-powered Linux assistant
echo Command - Display a Line of Text
echo is a simple command used to display a line of text or variables to the standard output. It is commonly used in shell scripts and command-line operations.
Syntax
echo [options] [string ...]
Examples
echo "Hello, world!"
Print the text "Hello, world!" to the terminal.
echo $HOME
Display the value of the HOME environment variable.
Notes
- Use
-n
to suppress the trailing newline. - Supports escape sequences with
-e
(e.g.,\n
for newline). - Behavior may differ between shells (e.g., bash vs. sh).