Shell and Environment

echo

Prints text or variable values.

echo writes its arguments to standard output. It is used for quick messages, shell variables, and simple output generation.

Syntax
echo [text...]

Arguments explained

  • text is what to print.
  • -n suppresses the trailing newline in many shells.
  • -e interprets escapes in some implementations.

Common examples

Print text
echo "Hello Linux"

Writes a line to the terminal.

Show PATH
echo "$PATH"

Prints the command search path.

echo Command
FieldDetails
Commandecho
CategoryShell and Environment
Primary usePrints text or variable values.
Syntaxecho [text...]