What is the purpose of the 'echo' command?

QuestionsQuestions8 SkillsProYour First Linux LabNov, 15 2025
0103

The echo command is used in the terminal to display a line of text or a variable value to the standard output (usually the terminal screen). It is commonly used in scripts and command-line operations to provide feedback or output information to the user.

Example Usage:

echo "Hello, World!"

This command will output:

Hello, World!

You can also use echo to display the value of a variable:

name="Labby"
echo "My name is $name"

This will output:

My name is Labby

0 Comments

no data
Be the first to share your comment!